diff --git a/plugins/gossip/gossip.go b/plugins/gossip/gossip.go index 4691f4e5519747c55833e0e9f2b45bfac131b428..12045c6369b2908fdda1b0b0af3efb7fa0e23f7f 100644 --- a/plugins/gossip/gossip.go +++ b/plugins/gossip/gossip.go @@ -48,7 +48,10 @@ var ( func getTransaction(h []byte) ([]byte, error) { log.Info("Retrieving tx:", string(h)) tx, err := tangle.GetTransaction(string(h)) - if err != nil || tx == nil { + if err != nil { + return []byte{}, err + } + if tx == nil { return []byte{}, errors.New("Not found") } pTx := &pb.TransactionRequest{