diff --git a/server.go b/server.go index b13f520..ca5657c 100644 --- a/server.go +++ b/server.go @@ -335,7 +335,7 @@ func handleTx(request []byte, bc *Blockchain) { } cbTx := NewCoinbaseTX(miningAddress, "") - txs = append(txs, cbTx) + txs = append([]*block.Transaction{cbTx}, txs...) newBlock := bc.MineBlock(txs) UTXOSet := UTXOSet{bc}