Merge pull request #2880 from nspcc-dev/docs/actor

rpcclient/actor: Document `RPCActor.CalculateNetworkFee` method
This commit is contained in:
Roman Khimov 2023-01-18 01:46:11 +07:00 committed by GitHub
commit 0c43b1ddca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,10 @@ import (
type RPCActor interface {
invoker.RPCInvoke
// CalculateNetworkFee calculates network fee for the given transaction.
//
// CalculateNetworkFee MUST NOT call state-changing methods (like Hash or Size)
// of the transaction through the passed pointer: make a copy if necessary.
CalculateNetworkFee(tx *transaction.Transaction) (int64, error)
GetBlockCount() (uint32, error)
GetVersion() (*result.Version, error)