Update UTXOSet after adding a new block

This commit is contained in:
Ivan Kuznetsov 2017-10-03 15:54:50 +07:00
parent 150778f920
commit 13f22d2e40
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ func handleBlock(request []byte, bc *Blockchain) {
blocksInTransit = blocksInTransit[1:]
}
UTXOSet := UTXOSet{bc}
UTXOSet.Update(block)
}
func handleInv(request []byte, bc *Blockchain) {