| 873 | } |
| 874 | |
| 875 | bool SaveTxIndex(const uint256 &txid, CCacheWrapper &cw, CValidationState &state, const CDiskTxPos &diskTxPos) { |
| 876 | if (SysCfg().IsTxIndex()) { |
| 877 | if (!cw.blockCache.SetTxIndex(txid, diskTxPos)) |
| 878 | return state.Abort(_("Failed to write transaction index")); |
| 879 | } |
| 880 | return true; |
| 881 | } |
| 882 | |
| 883 | // compute vote staking interest && revoke votes |
| 884 | static bool ComputeVoteStakingInterestAndRevokeVotes(const uint256& blockHash, const int32_t currHeight, const uint32_t currBlockTime, |
no test coverage detected