4

To monitor inbound payments for a web wallet, I plan to use walletnotify to record the transaction IDs, then on each blocknotify I will check the number of confirmations for each pending transaction.

Obviously everyone is thinking about transaction malleability right now, so my question is this: in the event that the transaction ID is changed, or a block containing the transaction is orphaned etc - will I get another walletnotify with the changed TxId?

3

Yes. You receieve a walletnotify for every transaction your wallet sees that is relevant to it. Once when it is first seen, and once when it is seen in a block (first confirmation). These two may coincide, in which case you only get the confirmation one.

For mutated transactions, you will see a first one that never confirms (and in 0.9 will get a "-1" confirmations marker), and a second transaction that does confirm.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.