dcrd/blockchain/stake
Ryan Staudt 46305c7bf5 blockchain: Fix revocation fee limit bug.
This retroactively fixes a bug that resulted in the fee limit not being
properly enforced for revocation transactions.  The exploitation risk of
this was that in a split transaction, one party could intentionally
increase the fee paid to miners for another party.

It is no longer possible to exploit this on mainnet since the automatic
revocations agenda has activated, which enforces that the fee must be
zero for revocation transactions.

The fee limit for revocation transactions was never violated on mainnet
so this logic can be safely corrected without impacting consensus.  This
has been validated by running a full sync with checkpoints and assume
valid disabled.
2022-05-17 01:08:29 -05:00
..
internal blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
testdata multi: Only use module-scoped data in tests. 2018-08-16 15:08:07 -05:00
doc.go stake: Make doc.go formatting consistent. 2019-07-28 14:39:09 -05:00
error_test.go multi: avoid using subscriber lifecycle in catchup. 2021-10-12 18:52:50 -05:00
error.go stake: Add auto revocation error kinds. 2021-09-06 08:48:19 -05:00
go.mod blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
go.sum blockchain/stake: Prepare v4.0.0. 2021-11-21 16:09:22 -06:00
log.go stake: Remove DisableLog. 2019-07-28 14:39:11 -05:00
lottery_test.go blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
lottery.go blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
scripttype_test.go stake: Add is treasury gen script. 2021-06-10 15:26:01 -05:00
scripttype.go blockchain/stake: Prepare v4.0.0. 2021-11-21 16:09:22 -06:00
staketx_test.go multi: Remove treasury flag from IsSSGen. 2022-05-08 11:47:32 -05:00
staketx.go blockchain: Fix revocation fee limit bug. 2022-05-17 01:08:29 -05:00
tickets_test.go multi: Remove treasury flag from IsSSGen. 2022-05-08 11:47:32 -05:00
tickets.go blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
treasury_test.go blockchain/stake: Address some linter complaints. 2022-04-19 19:07:17 -05:00
treasury.go blockchain/stake: Prepare v4.0.0. 2021-11-21 16:09:22 -06:00