diff options
Diffstat (limited to 'src/rpc.cpp')
| -rw-r--r-- | src/rpc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp index b12dc2f..11020d8 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp | |||
| @@ -237,7 +237,11 @@ struct PendingPayout { | |||
| 237 | // owed against blocks that no longer existed, which then drained the | 237 | // owed against blocks that no longer existed, which then drained the |
| 238 | // wallet paying fork-era miners out of real-chain coin. | 238 | // wallet paying fork-era miners out of real-chain coin. |
| 239 | int blockHeight = 0; | 239 | int blockHeight = 0; |
| 240 | uint256 blockHash; // zero = entry predates hash keying | 240 | // Must be explicitly zeroed: uint256's default constructor is empty |
| 241 | // (uint256.h:514), so leaving this unassigned gives every ledger entry | ||
| 242 | // loaded from an older file a garbage hash, which then matches no block | ||
| 243 | // and gets voided as "orphaned". That mistake voided a live payout. | ||
| 244 | uint256 blockHash = 0; // zero = entry predates hash keying | ||
| 241 | int matureAtHeight; | 245 | int matureAtHeight; |
| 242 | std::map<std::string, int64> amounts; // address -> satoshis | 246 | std::map<std::string, int64> amounts; // address -> satoshis |
| 243 | int retries = 0; // exec-thread only: SendMoney attempts so far | 247 | int retries = 0; // exec-thread only: SendMoney attempts so far |