Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Tx1:
send '{"bcrt1qgz8qhrqyglh7zu3alssydsfa7wk2auucftfnv3": 0.2}' null "unset" 1.1
{ "txid": "d040ebe603f80bdf1a92877efeb2b4a27c32766202aeecf3a969b665a0d4c6d8", "complete": true }
Bump fee:
bumpfee d040ebe603f80bdf1a92877efeb2b4a27c32766202aeecf3a969b665a0d4c6d8
Tx2:
{ "txid": "14f13ad9e757752fce52be3f60a08ff697db646863e68f43e76bd1e70eb4504f", "origfee": 0.00000228, "fee": 0.00001268, "errors": [ ] }
Prioritize Tx1:
prioritisetransaction "d040ebe603f80bdf1a92877efeb2b4a27c32766202aeecf3a969b665a0d4c6d8" 0.0 2536
true
Mine a block:
generatetoaddress 1 "bcrt1qh3v7u6qv46q26srjtjux3cg2g35qlyjf8fqgej"
[ "7901e58c61d7e4ed0a07aaef382b5ca6c2f3ec146ed093f443c5e322d4ba3848" ]
Why does Tx2 get included in the block even though I tried to prioritize Tx1:
getblock "7901e58c61d7e4ed0a07aaef382b5ca6c2f3ec146ed093f443c5e322d4ba3848" 2
https://pastebin.com/raw/kYfTsUUG
If this is related to mempool conflicts and the way they are managed in Bitcoin Core, how can I test below scenario using regtest:
- User broadcasts Tx1 which is relayed and now in the mempool of a node used by mining pools.
- User replaces it using RBF with Tx2, this transaction is not yet relayed to mempool of nodes used by mining pools.
- Next block is mined and Tx1 is included in the block
The issue got resolved. I had to prioritize the transaction before bumping fee, so the correct order of things mentioned in question will be:
Tx1
Prioritize Tx1
Bump fee
Tx2
Mine a block
Reason: Maybe we can't prioritize a transaction that is already replaced with a new transaction. I think prioritisetransaction
should have returned some error or at least false
in this case. However, I noticed it returns true
for almost any transaction id. I copied a transaction id from testnet explorer and even that returns
true when I use it with prioritisetransaction
on regtest.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments