BOXFoundation / boxd

Blockchain for BOX Payout
MIT License
40 stars 10 forks source link

Delete split addr index when reverting a block? #237

Closed xhliu closed 5 years ago

xhliu commented 5 years ago

We add it when applying a block. https://github.com/BOXFoundation/boxd/blob/91ce1ecd8988fdd478285a7d7088bc00430725b0/core/chain/blockchain.go#L613-L623

Do the opposite here? https://github.com/BOXFoundation/boxd/blob/91ce1ecd8988fdd478285a7d7088bc00430725b0/core/chain/blockchain.go#L567-L571