Author

Topic: [HELP] REGTEST mode Transactions stuck in Mempool? (Read 373 times)

newbie
Activity: 3
Merit: 0
Yes, segwit is activated and my blockheight is currently 268. I did start my bitcoin instance with the flags -prematurewitness and -walletprematurewitness but I don't see how that would change anything.
staff
Activity: 3458
Merit: 6793
Just writing some code
Did you activate segwit yet? Have you mined 288 blocks (IIRC that's the threshold for regtest) to activate segwit?
newbie
Activity: 3
Merit: 0
I'm trying to mine a segwit transaction in regtest mode but for some reason it just stays stuck in the mempool. To generate my regtest blocks I'm executing the following commands:
 > addr=`bitcoin-cli -regtest getaccountaddress ''`
 > waddr=`bitcoin-cli -regtest addwitnessaddress $addr`
 > bitcoin-cli -regtest generatetoaddress 1 $waddr

If anyone has any idea why this transaction is getting stuck, your help is much appreciated.

This is the transaction in question:
{
  "hex": "01000000000101aa1367170c74b62677f525f96786addbbe194274a31b75c5e149d868f480f9730 000000000ffffffff01831500000000000016001412a93cc8895261fb9631dc30948944f49615ff 2b02483045022100f9c051b83fac296775e4f13f074810a3c821c504537b985d475edd078b404d9 a0220059b804bf536a96205c81f8577944cdf5fdd951e67d1d3c08144af2fd615e68c83210358e4 d2bc7dd73220397f964b1b606eaf1dd6718d35a39f8168776a8099134a0600000000",
  "txid": "f158c33d45d806b18d656abf6328d4ec32629c279c77413e5132fdcd9279575b",
  "hash": "39af9e4674aae17f89d689fe69968bfccbfb6efd44ee5b03f61999c377e6cc76",
  "size": 192,
  "vsize": 110,
  "version": 1,
  "locktime": 0,
  "vin": [
    {
      "txid": "73f980f468d849e1c5751ba3744219bedbad8667f925f57726b6740c176713aa",
      "vout": 0,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "txinwitness": [
        "3045022100f9c051b83fac296775e4f13f074810a3c821c504537b985d475edd078b404d9a02200 59b804bf536a96205c81f8577944cdf5fdd951e67d1d3c08144af2fd615e68c83",
        "0358e4d2bc7dd73220397f964b1b606eaf1dd6718d35a39f8168776a8099134a06"
      ],
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 0.00005507,
      "n": 0,
      "scriptPubKey": {
        "asm": "0 12a93cc8895261fb9631dc30948944f49615ff2b",
        "hex": "001412a93cc8895261fb9631dc30948944f49615ff2b",
        "type": "witness_v0_keyhash"
      }
    }
  ]
}

This is the input of the above transaction (which is being mined successfully):
{
  "hex": "01000000010ec06e318c2ef872e26fa6b146d93f3218687ed396f71f85768faf5be6679b6201000 0006b4830450221008b21c79f993faf9b8d36738a40f2fe8e63506af2a9049f6b59712ee04ba925 d602202962dd136352b539cd3dae8bf4ecc06bcbf5999914d87a31c372c024ed9bed42012103341 d0d4854a6e3c3c5401377ccf2c4ae493310a6ef1e73b763ab9e5a707a6cf2feffffff0206220000 0000000016001481e1ee5d4b12dd5b5546e674d0527ee378879bea10898f3b000000001976a9147 324bb5f259bcedf0147138ce9eda1265624516788ac00000000",
  "txid": "73f980f468d849e1c5751ba3744219bedbad8667f925f57726b6740c176713aa",
  "hash": "73f980f468d849e1c5751ba3744219bedbad8667f925f57726b6740c176713aa",
  "size": 223,
  "vsize": 223,
  "version": 1,
  "locktime": 0,
  "vin": [
    {
      "txid": "629b67e65baf8f76851ff796d37e6818323fd946b1a66fe272f82e8c316ec00e",
      "vout": 1,
      "scriptSig": {
        "asm": "30450221008b21c79f993faf9b8d36738a40f2fe8e63506af2a9049f6b59712ee04ba925d602202 962dd136352b539cd3dae8bf4ecc06bcbf5999914d87a31c372c024ed9bed42[ALL] 03341d0d4854a6e3c3c5401377ccf2c4ae493310a6ef1e73b763ab9e5a707a6cf2",
        "hex": "4830450221008b21c79f993faf9b8d36738a40f2fe8e63506af2a9049f6b59712ee04ba925d6022 02962dd136352b539cd3dae8bf4ecc06bcbf5999914d87a31c372c024ed9bed42012103341d0d48 54a6e3c3c5401377ccf2c4ae493310a6ef1e73b763ab9e5a707a6cf2"
      },
      "sequence": 4294967294
    }
  ],
  "vout": [
    {
      "value": 0.00008710,
      "n": 0,
      "scriptPubKey": {
        "asm": "0 81e1ee5d4b12dd5b5546e674d0527ee378879bea",
        "hex": "001481e1ee5d4b12dd5b5546e674d0527ee378879bea",
        "type": "witness_v0_keyhash"
      }
    },
    {
      "value": 9.99262480,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 7324bb5f259bcedf0147138ce9eda12656245167 OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a9147324bb5f259bcedf0147138ce9eda1265624516788ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "mr1n1HxFhWGBgWZMh12s8naPBw78is43Fh"
        ]
      }
    }
  ],
  "blockhash": "7caf98ec168f670577c2161493984d7e0419ea58dbcfcc2a1ce579ee5a4ea4e7",
  "confirmations": 1,
  "time": 1487790750,
  "blocktime": 1487790750
}
Jump to: