From c19f6bfb424f9c2d91bd72e0b058f3cc5dd10ae8 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Wed, 3 Apr 2019 12:51:51 +0200 Subject: [PATCH] Fix tryParseOmni --- bchain/coins/btc/bitcoinparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bchain/coins/btc/bitcoinparser.go b/bchain/coins/btc/bitcoinparser.go index eed0878c..c1b6a212 100644 --- a/bchain/coins/btc/bitcoinparser.go +++ b/bchain/coins/btc/bitcoinparser.go @@ -160,7 +160,7 @@ func (p *BitcoinParser) tryParseOmni(data []byte) string { // currently only simple send transaction version 0 is supported, see // https://github.com/OmniLayer/spec#transfer-coins-simple-send - if len(data) != 20 && data[0] != 'o' { + if len(data) != 20 || data[0] != 'o' { return "" } // omni (4) (2) (2)