aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-02 18:52:56 +0800
committerobscuren <geffobscura@gmail.com>2014-12-02 18:52:56 +0800
commit64f35ba8d1f31d6821a0a1bf946c71396a996f30 (patch)
tree375a081536c7c0b329a3b0c2e812ff05f81dd64c /peer.go
parent616066a598933df7ef126186eb9c647094f665ca (diff)
parent99481a245adc2c4814ab6b38d94d63114f7bbb15 (diff)
downloaddexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.tar
dexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.tar.gz
dexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.tar.bz2
dexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.tar.lz
dexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.tar.xz
dexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.tar.zst
dexon-64f35ba8d1f31d6821a0a1bf946c71396a996f30.zip
merge errors fixed
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index e01f11914..a0ee9dcc4 100644
--- a/peer.go
+++ b/peer.go
@@ -430,7 +430,12 @@ func (p *Peer) HandleInbound() {
// processing when a new block is found
for i := 0; i < msg.Data.Len(); i++ {
tx := types.NewTransactionFromValue(msg.Data.Get(i))
- p.ethereum.TxPool().QueueTransaction(tx)
+ err := p.ethereum.TxPool().Add(tx)
+ if err != nil {
+ peerlogger.Infoln(err)
+ } else {
+ peerlogger.Infof("tx OK (%x)\n", tx.Hash()[0:4])
+ }
}
case wire.MsgGetPeersTy:
// Peer asked for list of connected peers