Commit 16455e0
committed
[BUG] Miner not paying valid finalized budget if <20 active masternodes
Verifier: (`CheckBlock` --> `IsBlockPayeeValid` -->
`IsBudgetPaymentBlock`) expects a payment to a budget even with the case
of N<20 active masternodes on the network, provided that all N voted on
the finalized budget (the threshold is N-1).
Also remove the extra call to `IsBudgetPaymentBlock` directly from
`FillBlockPayee` (it is already called by
`CBudgetManager::FillBlockPayee` --> `GetPayeeAndAmount`).1 parent dc7eb08 commit 16455e0
2 files changed
+7
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 404 | + | |
| 405 | + | |
412 | 406 | | |
413 | 407 | | |
414 | | - | |
| 408 | + | |
| 409 | + | |
415 | 410 | | |
416 | 411 | | |
417 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
| |||
0 commit comments