Replies: 2 comments 3 replies
-
Yes, this is the intended behavior:
In this case the commitment will not be present in the final transaction, which will allow double spending/double commiting. |
Beta Was this translation helpful? Give feedback.
-
Hi @adambor and @louneskmt, Tapret Issue TX changes after finalize Could you update the version and test again, please? |
Beta Was this translation helpful? Give feedback.
-
Following the demo here: https://github.com/LNP-BP/nodes/blob/master/contrib/demo-rgb.sh
After doing "dbc commit" a bunch of 0x50 are added to the output script which results in a provably unspendable output as can be seen here: https://mempool.space/testnet/tx/e006e0166ca407cb7492abdc9d1bfa3c72ab5cb8c06fa0f99afd00608748db90 . This also causes Tx ID to be different between than the one in the consignment (which is taken prior to dbc commit).
What should be the expected behavior here? I would expect "dbc commit" to actually produce the output script based on tapret commitment and default change output script (which in turn changes the TX ID - so shouldn't we finalize the consignment only after running dbc commit???).
I also tried running it without dbc commit, which resulted in the output script not being changed and was just a transaction from myself to myself (using classic change output script /1/0), so no tapret commitment in the output, but here the TX ID in consignment was also mismatched... Attaching the psbt, rgbc and raw tx for this case - demo.zip.
TX ID in consignment: 9324fe13ab0f61b1aa074eb7d549d008c4e22a01363d047447c51f8a17efce7d
Actual TX ID in psbt and raw tx: cc16cc0ce53360b61f5b1420ca1b2c28420040a153e3e0aa44b3bd7c0abb5ac0
There is definitely some issue with dbc commit, but maybe also
rgb-cli -n testnet transfer finalize --endseal ${TXOB} ${PSBT} ${CONSIGNMENT}
doesn't work as expected and doesn't take the correct TXIDBeta Was this translation helpful? Give feedback.
All reactions