forked from TrueCloudLab/neoneo-go
network: process incoming p2p transactions
It's the same relaying as for RPC, but we don't need to return any result for it.
This commit is contained in:
parent
9f9cf4ae3f
commit
a730529b0c
1 changed files with 3 additions and 0 deletions
|
@ -462,6 +462,9 @@ func (s *Server) handleConsensusCmd(cp *consensus.Payload) error {
|
|||
// It never returns an error.
|
||||
func (s *Server) handleTxCmd(tx *transaction.Transaction) error {
|
||||
s.consensus.OnTransaction(tx)
|
||||
// It's OK for it to fail for various reasons like tx already existing
|
||||
// in the pool.
|
||||
_ = s.RelayTxn(tx)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue