Post
Topic
Board Bitcoin Technical Support
Re: Using Createrawtransaction Got no-witness-yet Error
by
haoqian
on 03/05/2018, 15:29:30 UTC
I did not include any Segwit in any transaction. why does it show here?
Are you sure? If you forked from the latest Bitcoin Core, it uses segwit by default. Can you post what the changeaddress looks like and what the output of listunspent looks like?

Thank you for your reply.

I forked 0.16 bitcoin core.

getrawchangeaddress shows this:

Code:
3PgBJaR5fCw9nBtij7THqfHbbENdCdFEuv

listunspent shows this:

Code:
  {
    "txid": "4bffb171833ca3fe5fe5f272a482161809be371131f89f6c116d695096c60afe",
    "vout": 0,
    "address": "1A6csP8jrpyruyW4a9tX9Nonv4R8AviB1y",
    "account": "",
    "scriptPubKey": "76a91463c9274bf6297bd724ad66eafab4fd94f7c9714488ac",
    "amount": 50.00000000,
    "confirmations": 21,
    "spendable": true,
    "solvable": true,
    "safe": true
  },
  {
    "txid": "efd172501ea2760738987a3d4865dc41aae2cc988d02e08860f939166ad97bff",
    "vout": 0,
    "address": "1A6csP8jrpyruyW4a9tX9Nonv4R8AviB1y",
    "account": "",
    "scriptPubKey": "76a91463c9274bf6297bd724ad66eafab4fd94f7c9714488ac",
    "amount": 50.00000000,
    "confirmations": 46,
    "spendable": true,
    "solvable": true,
    "safe": true
  }