From e8eca5c6ea3ddd4ea78bb3339d355e6b5e1f5549 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 23 Mar 2018 13:25:42 +0100 Subject: [PATCH] Update EthParser to match BlockChainParser interface --- bchain/coins/eth/ethparser.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/bchain/coins/eth/ethparser.go b/bchain/coins/eth/ethparser.go index 79811d50..e1ba744f 100644 --- a/bchain/coins/eth/ethparser.go +++ b/bchain/coins/eth/ethparser.go @@ -5,19 +5,11 @@ import "blockbook/bchain" type EthParser struct { } -func (p *EthParser) GetUIDFromVout(output *bchain.Vout) string { +func (p *EthParser) GetAddrIDFromVout(output *bchain.Vout) ([]byte, error) { panic("not implemented") } -func (p *EthParser) GetUIDFromAddress(address string) ([]byte, error) { - panic("not implemented") -} - -func (p *EthParser) PackUID(script string) ([]byte, error) { - panic("not implemented") -} - -func (p *EthParser) UnpackUID(buf []byte) string { +func (p *EthParser) GetAddrIDFromAddress(address string) ([]byte, error) { panic("not implemented") } @@ -44,3 +36,7 @@ func (p *EthParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byt func (p *EthParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error) { panic("not implemented") } + +func (p *EthParser) IsUTXOChain() bool { + return false +}