core: fix References() result key type
If the block references two ouputs in some other transaction the code failed to verify it because of key collision. C# code implements it properly by using full CoinReference type as a key, so let's do it in a similar fashion.
This commit is contained in:
parent
8537700b7b
commit
b7c1efe7e3
3 changed files with 7 additions and 7 deletions
|
@ -24,7 +24,7 @@ type Blockchainer interface {
|
|||
GetAssetState(util.Uint256) *AssetState
|
||||
GetAccountState(util.Uint160) *AccountState
|
||||
GetTransaction(util.Uint256) (*transaction.Transaction, uint32, error)
|
||||
References(t *transaction.Transaction) map[util.Uint256]*transaction.Output
|
||||
References(t *transaction.Transaction) map[transaction.Input]*transaction.Output
|
||||
Feer // fee interface
|
||||
Verify(t *transaction.Transaction) error
|
||||
GetMemPool() MemPool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue