Do not remove txs from extra block on reorgs.

This commit is contained in:
Josh Rickmar 2015-05-04 09:28:19 -04:00
parent c820c8a015
commit 8ce25ce518

View file

@ -93,7 +93,7 @@ func (w *Wallet) disconnectBlock(bs waddrmgr.BlockStamp) error {
if iter.Prev() {
prev := iter.BlockStamp()
w.Manager.SetSyncedTo(&prev)
err := w.TxStore.Rollback(prev.Height)
err := w.TxStore.Rollback(prev.Height + 1)
if err != nil {
return err
}