Open kostyantyn opened 5 years ago
Since this is tagged 1.0
, I wonder if https://github.com/dtr-org/unit-e/pull/885 is that urgent.
I would prefer not to rush this for a perceived quick win. Especially the wallet (pruning, fast sync, SPV/light, merging with bitcoin 0.17, 0.18) will require some serious thinking.
@scravy https://github.com/dtr-org/unit-e/pull/883 seems not related much to this. Do you mean https://github.com/dtr-org/unit-e/pull/885 ?
I do. Edited.
Is your feature request related to a problem? Please describe
CMerkleTx
has a fieldnIndex
which contains the position of the transaction in the block. We also don't have this field and it's set to 0.Describe the solution you'd like A node can recover missing inputs by asking peers for its full transactions. To recover the position, we can either request the full block (too slow) or create a new p2p message that returns the needed leaves to reconstruct the merkle root and the position of our transaction.