diff --git a/server.go b/server.go index c74d127..7457cb0 100644 --- a/server.go +++ b/server.go @@ -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) {