Skip to content

Commit

Permalink
fixing stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurobert committed May 4, 2022
1 parent de771d0 commit 401b8e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ipc/arwenpart/blockchainGateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,16 @@ func (blockchain *BlockchainHookGateway) GetSnapshot() int {
return 0
}

// IsPaused - not used in v1.2
func (blockchain *BlockchainHookGateway) IsPaused(_ []byte) bool {
return false
}

// IsLimitedTransfer - not used in v1.2
func (blockchain *BlockchainHookGateway) IsLimitedTransfer(_ []byte) bool {
return false
}

// RevertToSnapshot - not used in v1.2
func (blockchain *BlockchainHookGateway) RevertToSnapshot(_ int) error {
return nil
Expand Down
10 changes: 10 additions & 0 deletions mock/context/blockChainHookStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,13 @@ func (b *BlockchainHookStub) RevertToSnapshot(snapshot int) error {
}
return nil
}

// IsPaused -
func (b *BlockchainHookStub) IsPaused(_ []byte) bool {
return false
}

// IsLimitedTransfer -
func (b *BlockchainHookStub) IsLimitedTransfer(_ []byte) bool {
return false
}

0 comments on commit 401b8e5

Please sign in to comment.