Documentation ¶
Index ¶
- Constants
- func IsEmptyCodeHash(codeHash types.Hash) bool
- type StateAccount
- func (a *StateAccount) Copy(image *StateAccount)
- func (a *StateAccount) DecodeForStorage(enc []byte) error
- func (a *StateAccount) EncodeForStorage(buffer []byte)
- func (a *StateAccount) EncodingLengthForStorage() uint
- func (a *StateAccount) Equals(acc *StateAccount) bool
- func (a *StateAccount) FromProtoMessage(msg proto.Message) error
- func (a *StateAccount) GetIncarnation() uint16
- func (a *StateAccount) IsEmptyCodeHash() bool
- func (a *StateAccount) IsEmptyRoot() bool
- func (a *StateAccount) Marshal() ([]byte, error)
- func (a *StateAccount) Reset()
- func (a *StateAccount) SelfCopy() *StateAccount
- func (a *StateAccount) SetIncarnation(v uint16)
- func (a *StateAccount) ToProtoMessage() proto.Message
- func (a *StateAccount) Unmarshal(v []byte) error
Constants ¶
View Source
const ( MimetypeDataWithValidator = "data/validator" MimetypeTypedData = "data/typed" MimetypeClique = "application/x-clique-header" MimetypeParlia = "application/x-parlia-header" MimetypeBor = "application/x-bor-header" MimetypeTextPlain = "text/plain" )
Variables ¶
This section is empty.
Functions ¶
func IsEmptyCodeHash ¶
Types ¶
type StateAccount ¶
type StateAccount struct { Initialised bool Nonce uint64 Balance uint256.Int Root types.Hash CodeHash types.Hash // hash of the bytecode Incarnation uint16 }
Account is the Ethereum consensus representation of accounts. These objects are stored in the main account trie. DESCRIBED: docs/programmers_guide/guide.md#ethereum-state
func NewAccount ¶
func NewAccount() StateAccount
NewAccount creates a new account w/o code nor storage.
func (*StateAccount) Copy ¶
func (a *StateAccount) Copy(image *StateAccount)
Copy makes `a` a full, independent (meaning that if the `image` changes in any way, it does not affect `a`) copy of the account `image`.
func (*StateAccount) DecodeForStorage ¶
func (a *StateAccount) DecodeForStorage(enc []byte) error
func (*StateAccount) EncodeForStorage ¶
func (a *StateAccount) EncodeForStorage(buffer []byte)
func (*StateAccount) EncodingLengthForStorage ¶
func (a *StateAccount) EncodingLengthForStorage() uint
func (*StateAccount) Equals ¶
func (a *StateAccount) Equals(acc *StateAccount) bool
func (*StateAccount) FromProtoMessage ¶
func (a *StateAccount) FromProtoMessage(msg proto.Message) error
func (*StateAccount) GetIncarnation ¶
func (a *StateAccount) GetIncarnation() uint16
func (*StateAccount) IsEmptyCodeHash ¶
func (a *StateAccount) IsEmptyCodeHash() bool
func (*StateAccount) IsEmptyRoot ¶
func (a *StateAccount) IsEmptyRoot() bool
func (*StateAccount) Marshal ¶
func (a *StateAccount) Marshal() ([]byte, error)
func (*StateAccount) Reset ¶
func (a *StateAccount) Reset()
func (*StateAccount) SelfCopy ¶
func (a *StateAccount) SelfCopy() *StateAccount
func (*StateAccount) SetIncarnation ¶
func (a *StateAccount) SetIncarnation(v uint16)
func (*StateAccount) ToProtoMessage ¶
func (a *StateAccount) ToProtoMessage() proto.Message
func (*StateAccount) Unmarshal ¶
func (a *StateAccount) Unmarshal(v []byte) error
Click to show internal directories.
Click to hide internal directories.