Fix tryParseOmni
This commit is contained in:
parent
987aec47f9
commit
c19f6bfb42
@ -160,7 +160,7 @@ func (p *BitcoinParser) tryParseOmni(data []byte) string {
|
|||||||
|
|
||||||
// currently only simple send transaction version 0 is supported, see
|
// currently only simple send transaction version 0 is supported, see
|
||||||
// https://github.com/OmniLayer/spec#transfer-coins-simple-send
|
// https://github.com/OmniLayer/spec#transfer-coins-simple-send
|
||||||
if len(data) != 20 && data[0] != 'o' {
|
if len(data) != 20 || data[0] != 'o' {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
// omni (4) <tx_version> (2) <tx_type> (2)
|
// omni (4) <tx_version> (2) <tx_type> (2)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user