From d29bb104bfda3d0ce0569e7c9a2ff3939eeb528b Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 26 Nov 2025 16:58:51 +0000 Subject: [PATCH] Add maxtreasuryspend --- config.go | 4 ++-- go.mod | 10 +++++----- go.sum | 17 ++++++++--------- main.go | 4 +++- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/config.go b/config.go index ea8eea4..ffb332c 100644 --- a/config.go +++ b/config.go @@ -22,11 +22,11 @@ const ( // blockVersionMain is the version of the block being generated for // the main network. - blockVersionMain = 10 + blockVersionMain = 11 // blockVersionTest is the version of the block being generated // for the testnet network. - blockVersionTest = 11 + blockVersionTest = 12 ) var ( diff --git a/go.mod b/go.mod index e1ee119..fe1b3e9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/decred/dcrvotingweb -go 1.23 +go 1.24.0 require ( github.com/decred/dcrd/chaincfg/v3 v3.3.0 @@ -9,7 +9,7 @@ require ( github.com/decred/dcrd/rpcclient/v8 v8.1.0 github.com/decred/dcrd/wire v1.7.1 github.com/dustin/go-humanize v1.0.1 - github.com/jessevdk/go-flags v1.5.0 + github.com/jessevdk/go-flags v1.6.1 ) require ( @@ -32,8 +32,8 @@ require ( github.com/decred/slog v1.2.0 // indirect github.com/gorilla/websocket v1.5.1 // indirect github.com/klauspost/cpuid/v2 v2.0.9 // indirect - golang.org/x/crypto v0.33.0 // indirect - golang.org/x/net v0.21.0 // indirect - golang.org/x/sys v0.30.0 // indirect + golang.org/x/crypto v0.45.0 // indirect + golang.org/x/net v0.47.0 // indirect + golang.org/x/sys v0.38.0 // indirect lukechampine.com/blake3 v1.3.0 // indirect ) diff --git a/go.sum b/go.sum index 0733e9f..3fc6249 100644 --- a/go.sum +++ b/go.sum @@ -50,18 +50,17 @@ github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= -github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= -github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= +github.com/jessevdk/go-flags v1.6.1 h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4= +github.com/jessevdk/go-flags v1.6.1/go.mod h1:Mk8T1hIAWpOiJiHa9rJASDK2UGWji0EuPGBnNLMooyc= github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= -golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus= -golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= -golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= -golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= -golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= +golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= lukechampine.com/blake3 v1.3.0 h1:sJ3XhFINmHSrYCgl958hscfIa3bw8x4DqMP3u1YvoYE= lukechampine.com/blake3 v1.3.0/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= diff --git a/main.go b/main.go index aee7f37..4df4eb4 100644 --- a/main.go +++ b/main.go @@ -57,6 +57,7 @@ var ( "changesubsidysplit": "Change PoW/PoS Subsidy Split", "changesubsidysplitr2": "Change PoW/PoS Subsidy Split To 1/89", "blake3pow": "Change PoW to BLAKE3 and ASERT", + "maxtreasuryspend": "Change maximum treasury expenditure policy", } longAgendaDescriptions = map[string]string{ "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 ( "autorevocations": "Changes to ticket revocation transactions and block acceptance criteria in order to enable automatic ticket revocations, significantly improving the user experience for stakeholders.", "changesubsidysplit": "Proposal to modify to the block reward subsidy split such that 10% goes to Proof-of-Work and 80% goes to Proof-of-Stake.", "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%.", - "blake3pow": "Stakeholders voted 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).", + "blake3pow": "Stakeholders signaled 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).", + "maxtreasuryspend": "Stakeholders signaled 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 DCP0013.", } )