rpc: refactor calculatenetworkfee
handler
Use (Blockchainer).VerifyWitness() to calculate network fee for contract-based witnesses.
This commit is contained in:
parent
807fa4a720
commit
2d196b3f35
12 changed files with 31 additions and 52 deletions
|
@ -73,7 +73,7 @@ type Blockchainer interface {
|
|||
SubscribeForNotifications(ch chan<- *subscriptions.NotificationEvent)
|
||||
SubscribeForTransactions(ch chan<- *transaction.Transaction)
|
||||
VerifyTx(*transaction.Transaction) error
|
||||
VerifyWitness(util.Uint160, hash.Hashable, *transaction.Witness, int64) error
|
||||
VerifyWitness(util.Uint160, hash.Hashable, *transaction.Witness, int64) (int64, error)
|
||||
GetMemPool() *mempool.Pool
|
||||
UnsubscribeFromBlocks(ch chan<- *block.Block)
|
||||
UnsubscribeFromExecutions(ch chan<- *state.AppExecResult)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue