Gas estimation errored with the following message (see below). The transaction execution will likely fail

can someone help me with this quesion, please When i try to excute deposit function, it shows Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution error: revert { mapping (string => mapping(string => int)) gameResult; address player1; bool hasRight1; address player2;…

why using `blockIndex` in bitcoin’s code `unconfTxs`

I am reading the code of rpc’s estimateSmartFee method , and I can’t understand why using blockIndex in unconfTxs ? estimateSmartFee loop unconfTxs to get feeRate(code: https://github.com/bitcoin/bitcoin/blob/0.18/src/policy/fees.cpp#L291) But the value unconfTxs[blockIndex][bucketindex] will be reseted in TxConfirmStats::ClearCurrent or reduced in TxConfirmStats::removeTx. Why not just define like this unconfTxs[bucketindex]? source file fees.cpp unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight,…