diff --git a/pkg/core/blockchainer.go b/pkg/core/blockchainer.go index 7038617b1..deb295fba 100644 --- a/pkg/core/blockchainer.go +++ b/pkg/core/blockchainer.go @@ -15,6 +15,7 @@ type Blockchainer interface { BlockHeight() uint32 HeaderHeight() uint32 GetBlock(hash util.Uint256) (*Block, error) + GetContractState(hash util.Uint160) *ContractState GetHeaderHash(int) util.Uint256 GetHeader(hash util.Uint256) (*Header, error) CurrentHeaderHash() util.Uint256 @@ -23,6 +24,7 @@ type Blockchainer interface { HasTransaction(util.Uint256) bool GetAssetState(util.Uint256) *AssetState GetAccountState(util.Uint160) *AccountState + GetScriptHashesForVerifying(*transaction.Transaction) ([]util.Uint160, error) GetStorageItem(scripthash util.Uint160, key []byte) *StorageItem GetStorageItems(hash util.Uint160) (map[string]*StorageItem, error) GetTransaction(util.Uint256) (*transaction.Transaction, uint32, error) diff --git a/pkg/network/helper_test.go b/pkg/network/helper_test.go index 1b851b226..f42cb597c 100644 --- a/pkg/network/helper_test.go +++ b/pkg/network/helper_test.go @@ -56,6 +56,9 @@ func (chain testChain) HeaderHeight() uint32 { func (chain testChain) GetBlock(hash util.Uint256) (*core.Block, error) { panic("TODO") } +func (chain testChain) GetContractState(hash util.Uint160) *core.ContractState { + panic("TODO") +} func (chain testChain) GetHeaderHash(int) util.Uint256 { return util.Uint256{} } @@ -69,6 +72,9 @@ func (chain testChain) GetAssetState(util.Uint256) *core.AssetState { func (chain testChain) GetAccountState(util.Uint160) *core.AccountState { panic("TODO") } +func (chain testChain) GetScriptHashesForVerifying(*transaction.Transaction) ([]util.Uint160, error) { + panic("TODO") +} func (chain testChain) GetStorageItem(scripthash util.Uint160, key []byte) *core.StorageItem { panic("TODO") }