blockchain_go
blockchain_go copied to clipboard
Sending transactions without -mine FindTransaction error
When I send transaction without -mine flag, so when I wait for the miner node to mine, I get an error on FindTransaction() method.
goroutine 24 [running]:
log.Panic(0xc000125750, 0x1, 0x1)
/usr/local/go/src/log/log.go:326 +0xc0
blockchain/main/blockchain.Handle(0x9f4900, 0xc005512af0)
/home/melianor/go/src/blockchain/main/blockchain/block.go:70 +0x64
blockchain/main/blockchain.(*BlockChain).VerifyTransaction(0xc00016c520, 0xc0054f8280, 0xc005528140)
/home/melianor/go/src/blockchain/main/blockchain/blockchain.go:371 +0x39e
blockchain/main/network.MineTx(0xc00016c520)
/home/melianor/go/src/blockchain/main/network/network.go:361 +0x197
blockchain/main/network.HandleTx(0xc00550e600, 0x24a, 0x600, 0xc00016c520)
/home/melianor/go/src/blockchain/main/network/network.go:350 +0x606
blockchain/main/network.HandleConnection(0x9fa600, 0xc00000e670, 0xc00016c520)
/home/melianor/go/src/blockchain/main/network/network.go:448 +0x2d1
created by blockchain/main/network.StartServer
/home/melianor/go/src/blockchain/main/network/network.go:493 +0x2e3
exit status 2