BOXFoundation/boxd

split address is not found after chain is reorganized even split address was created before fork point too

Closed this issue · 1 comments

Take an example:
Split address S is created twice on block 10 and block 13. If someone transfer some money to the S on block 12 in transaction T. If chain reorganize when block height is 14, and then disconnect block to 11.
Now the split address is deleted. Then connect a new block with height is 12. On block 12, the transaction T is executed with a wrong result.

solution:
generate split address with tx hash, tx out index, addresses and weights.

e44d5ae fix it.