Official Go implementation of the Bytom protocol
修订版 | 33a77d89bbb07dad88c80bff8eeb92a563ab8b3c (tree) |
---|---|
时间 | 2019-04-25 15:27:46 |
作者 | HAOYUatHZ <haoyu@prot...> |
Commiter | HAOYUatHZ |
feat(wip): init chain.GetTxIdxByHash()
@@ -49,3 +49,7 @@ func (c *Chain) ValidateTx(tx *types.Tx) (bool, error) { | ||
49 | 49 | |
50 | 50 | return c.txPool.ProcessTransaction(tx, err != nil, bh.Height, gasStatus.BTMValue) |
51 | 51 | } |
52 | + | |
53 | +func (c *Chain) GetTxIdxByHash() (int, error) { | |
54 | + return 1, nil | |
55 | +} |