Re:(theymosの文脈投稿)

参加者: Theymos

さらに調査した結果、nLockTimeを有用にするにはインメモリ取引置換を再有効化する必要があることがわかった。

Code:if (mapNextTx.count(outpoint)) { // Disable replacement feature for now return false;

        // Allow replacing with a newer version of the same transaction
        if (i != 0)
            return false;
        ptxOld = mapNextTx[outpoint].ptx;
        if (!IsNewerThan(*ptxOld))
            return false;
        for (int i = 0; i < vin.size(); i++)
        {
            COutPoint outpoint = vin[i].prevout;
            if (!mapNextTx.count(outpoint) || mapNextTx[outpoint].ptx != ptxOld)
                return false;
        }
        break;