Skip to content

Commit ecd350b

Browse files
authored
Add maxtreasuryspend (#297)
1 parent 77eaa3c commit ecd350b

4 files changed

Lines changed: 18 additions & 17 deletions

File tree

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ const (
2222

2323
// blockVersionMain is the version of the block being generated for
2424
// the main network.
25-
blockVersionMain = 10
25+
blockVersionMain = 11
2626

2727
// blockVersionTest is the version of the block being generated
2828
// for the testnet network.
29-
blockVersionTest = 11
29+
blockVersionTest = 12
3030
)
3131

3232
var (

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/decred/dcrvotingweb
22

3-
go 1.23
3+
go 1.24.0
44

55
require (
66
github.com/decred/dcrd/chaincfg/v3 v3.3.0
@@ -9,7 +9,7 @@ require (
99
github.com/decred/dcrd/rpcclient/v8 v8.1.0
1010
github.com/decred/dcrd/wire v1.7.1
1111
github.com/dustin/go-humanize v1.0.1
12-
github.com/jessevdk/go-flags v1.5.0
12+
github.com/jessevdk/go-flags v1.6.1
1313
)
1414

1515
require (
@@ -32,8 +32,8 @@ require (
3232
github.com/decred/slog v1.2.0 // indirect
3333
github.com/gorilla/websocket v1.5.1 // indirect
3434
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
35-
golang.org/x/crypto v0.33.0 // indirect
36-
golang.org/x/net v0.21.0 // indirect
37-
golang.org/x/sys v0.30.0 // indirect
35+
golang.org/x/crypto v0.45.0 // indirect
36+
golang.org/x/net v0.47.0 // indirect
37+
golang.org/x/sys v0.38.0 // indirect
3838
lukechampine.com/blake3 v1.3.0 // indirect
3939
)

go.sum

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,17 @@ github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
5050
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
5151
github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY=
5252
github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY=
53-
github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc=
54-
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
53+
github.com/jessevdk/go-flags v1.6.1 h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4=
54+
github.com/jessevdk/go-flags v1.6.1/go.mod h1:Mk8T1hIAWpOiJiHa9rJASDK2UGWji0EuPGBnNLMooyc=
5555
github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
5656
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
5757
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
5858
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=
59-
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
60-
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
61-
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
62-
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
63-
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
64-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
65-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
59+
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
60+
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
61+
golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=
62+
golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=
63+
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
64+
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
6665
lukechampine.com/blake3 v1.3.0 h1:sJ3XhFINmHSrYCgl958hscfIa3bw8x4DqMP3u1YvoYE=
6766
lukechampine.com/blake3 v1.3.0/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k=

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ var (
5757
"changesubsidysplit": "Change PoW/PoS Subsidy Split",
5858
"changesubsidysplitr2": "Change PoW/PoS Subsidy Split To 1/89",
5959
"blake3pow": "Change PoW to BLAKE3 and ASERT",
60+
"maxtreasuryspend": "Change maximum treasury expenditure policy",
6061
}
6162
longAgendaDescriptions = map[string]string{
6263
"sdiffalgorithm": "Specifies a proposed replacement algorithm for determining the stake difficulty (commonly called the ticket price). This proposal resolves all issues with a new algorithm that adheres to the referenced ideals.",
@@ -70,7 +71,8 @@ var (
7071
"autorevocations": "Changes to ticket revocation transactions and block acceptance criteria in order to enable <a href='https://proposals.decred.org/record/e2d7b7d' target='_blank' rel='noopener noreferrer'>automatic ticket revocations</a>, significantly improving the user experience for stakeholders.",
7172
"changesubsidysplit": "<a href='https://proposals.decred.org/record/427e1d4' target='_blank' rel='noopener noreferrer'>Proposal</a> to modify to the block reward subsidy split such that 10% goes to Proof-of-Work and 80% goes to Proof-of-Stake.",
7273
"changesubsidysplitr2": "Modify the block reward subsidy split such that 1% goes to Proof-of-Work (PoW) and 89% goes to Proof-of-Stake (PoS). The Treasury subsidy remains at 10%.",
73-
"blake3pow": "<a href='https://proposals.decred.org/record/a8501bc' target='_blank' rel='noopener noreferrer'>Stakeholders voted</a> to change the Proof-of-Work hash function to BLAKE3. This consensus change will also update the difficulty algorithm to ASERT (Absolutely Scheduled Exponentially weighted Rising Targets).",
74+
"blake3pow": "<a href='https://proposals.decred.org/record/a8501bc' target='_blank' rel='noopener noreferrer'>Stakeholders signaled</a> to change the Proof-of-Work hash function to BLAKE3. This consensus change will also update the difficulty algorithm to ASERT (Absolutely Scheduled Exponentially weighted Rising Targets).",
75+
"maxtreasuryspend": "<a href='https://proposals.decred.org/record/16a93c7' target='_blank' rel='noopener noreferrer'>Stakeholders signaled</a> to change the maximum expenditure policy of the treasury account to be limited to 4% of the total available treasury per month as defined in <a href='https://github.com/decred/dcps/blob/master/dcp-0013/dcp-0013.mediawiki' target='_blank' rel='noopener noreferrer'>DCP0013</a>.",
7476
}
7577
)
7678

0 commit comments

Comments
 (0)