Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAccountsDB(db storage.Storer, enableEpochs common.EnableEpochsHandler) *state.AccountsDB
- func CreateInMemoryShardAccountsDB() *state.AccountsDB
- func CreateMemUnit() storage.Storer
- func CreateStorer(parentDir string) storage.Storer
- func SmartContractResultsToString(pubKeyConverter core.PubkeyConverter, ...) string
- func TransactionHandlerToString(pubKeyConverter core.PubkeyConverter, txHandlers ...data.TransactionHandler) string
Constants ¶
View Source
const MaxTrieLevelInMemory = uint(5)
MaxTrieLevelInMemory -
Variables ¶
View Source
var TestHasher = sha256.NewSha256()
TestHasher -
View Source
var TestMarshalizer = &marshal.GogoProtoMarshalizer{}
TestMarshalizer -
Functions ¶
func CreateAccountsDB ¶
func CreateAccountsDB(db storage.Storer, enableEpochs common.EnableEpochsHandler) *state.AccountsDB
CreateAccountsDB -
func CreateInMemoryShardAccountsDB ¶
func CreateInMemoryShardAccountsDB() *state.AccountsDB
CreateInMemoryShardAccountsDB -
func SmartContractResultsToString ¶
func SmartContractResultsToString(pubKeyConverter core.PubkeyConverter, scrs ...*smartContractResult.SmartContractResult) string
SmartContractResultsToString will convert smartcontract results to an easy-to-understand string
func TransactionHandlerToString ¶
func TransactionHandlerToString(pubKeyConverter core.PubkeyConverter, txHandlers ...data.TransactionHandler) string
TransactionHandlerToString will convert the transaction data slice provided to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.