package
0.0.0-20220129112925-a968a3f5976c
Repository: https://github.com/thinkiumgroup/go-thinkium.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteReceipts removes all receipt data associated with a block hash.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
It's just a hash value, and the hash value is key, so you don't need to save it.
Only hash is reserved.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewContractCreation creates an unsigned legacy transaction.
No description provided by the author
func NewEIP155Signer(chainId *big.Int) EIP155Signer {.
NewEIP2930Signer returns a signer that accepts EIP-2930 access list transactions, EIP-155 replay protected transactions, and legacy Homestead transactions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewLondonSigner returns a signer that accepts - EIP-1559 dynamic fee transactions - EIP-2930 access list transactions, - EIP-155 replay protected transactions, and - legacy Homestead transactions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewReceipt creates a barebone transaction receipt, copying the init fields.
No description provided by the author
No description provided by the author
NewTransaction creates an unsigned legacy transaction.
NewTx creates a new transaction.
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadReceipt retrieves a specific transaction receipt from the database, along with its added positional metadata.
ReadReceipts retrieves all the transaction receipts belonging to a block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The Key in LongStorage is composed of account address and additional value (generally attribute name), used for system contracts usually.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteReceipts stores all the transaction receipts belonging to a block.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
Consensus node.
each rr unit a consensus node pledge has, get a unit reward.
Control class.
Data node.
each rr unit a data node pledge has, get a unit reward.
No description provided by the author
No description provided by the author
No description provided by the author
compatible with Ethereum's transaction hash, pay attention to the tx.Hash() and tx.HashValue() methods when upgrading the version.
Number of bytes occupied by event type.
Failure class.
No description provided by the author
No description provided by the author
No description provided by the author
Initial class of consensus node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The consensus node pledges is calculated at most according to this,(202012: from 50000->10000).
The data node pledges is calculated at most according to this, (202012: from 200000->50000, 202101: from 50000->500000).
The maximum number of deltas that can be merged in each block is twice the maximum number of TX.
After the penalty exceeds this number of times, the pledge percentage is cleared to 0.
Delta number threshold per chain.
The maximum number of transactions packed in a block.
Full class.
No description provided by the author
No description provided by the author
Lower limit of consensus node pledges, (202012: from 50000->10000).
No description provided by the author
Lower limit of data node pledges, (202012: from 200000->50000).
A balance limit of reward account to stop process reward request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
new pre-election.
pre-electing.
exiting.
starting.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
// PosCommNodeRewardName = "poscommnodereward" PosCommNodeRewardName = "poscommnodereward1w.202012".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Preelect class, higher than SPEC and lower than COMM.
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
broadcast.
No description provided by the author
Random sending.
Directional transmission to a specific node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deposit.
The valid value must be less than this value.
Confiscation deposit.
NewStatus>0: RRInfo.Status |= uint16(NewStatus), NewStatus<0:RRInfo.Status &= (^uint16(-NewStatus)).
Withdraw.
RRInfoVersion:1: NodeCount, 2: statue.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Spectator class.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Starting class.
No description provided by the author
No description provided by the author
V0's BlockSummary.Hash Only a through transmission of BlockHash, can't reflect the location information of the block, and can't complete the proof of cross chain.
No description provided by the author
No description provided by the author
basic event types, the number of these types should not exceed 255, otherwise it will confilict with consensus event.
No description provided by the author
No description provided by the author
There is a bug in V0, which leads to insufficient amount when creating or invoking the contract, and the transaction will be packaged, but the nonce value does not increase.
This is the last EventType, ADD A NEW EventType BEFORE THIS PLEASE.
No description provided by the author
Withdraw lags 2 eras.

# Variables

melt down currency.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
gas fee account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
binding account of genesis nodes.
reward account.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
build-in accounts MainAccountAddr private key: 684b01785f1deae43c5cac91d75305bff4665a1b9ae7efea020aeb4ae50c77cc.
No description provided by the author
No description provided by the author
Pledge threshold for consensus nodes.
Pledge threshold for data node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AccessListTx is the data of EIP-2930 access list transactions.
AccessTuple is the element type of an access list.
1.
No description provided by the author
No description provided by the author
No description provided by the author
Even if it is an empty block, the attendance table must be filled in.
No description provided by the author
BlockCursor Cursor information used to record blocks, including block height and block hash.
No description provided by the author
No description provided by the author
To broadcast last height of the chain the current node recorded.
BlockReport report of Block.
No description provided by the author
No description provided by the author
No description provided by the author
a valid cancel request must: 1.
Verifiable Cash Check, for cross chain transfer In order to avoid synchronous recovery of ChainInfos in main chain when recovering data, the chain information is input by the user, and it is enough to check whether the local data is legal when executing (because even if the main chain data is not synchronized, the local chain information can still be known).
Check cashing request object is generated by RPC interface and submitted to the target chain through TX.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
for compatible with old version hash of AccountDelta TODO delete compatible when restart the chain with new version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Pack deltas generated by multiple blocks together.
No description provided by the author
No description provided by the author
EIP155Signer implements Signer using the EIP-155 rules.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ETHTransaction is an Ethereum transaction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HomesteadSigner HomesteadTransaction implements TransactionInterface using the homestead rules.
No description provided by the author
No description provided by the author
When starting, each chain data node reports the last consensus committee to the main chain data node.
No description provided by the author
No description provided by the author
LegacyTx is the transaction data of regular Ethereum transactions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Message EVM message.
No description provided by the author
No description provided by the author
Control class message, carefully forward on the network.
No description provided by the author
No description provided by the author
Pack deltas generated by multiple blocks together.
No description provided by the author
No description provided by the author
record the transaction process result.
The pre-election records, generated by the contract call of creation of the chain or the start of the pre-election, are put into the block after the main chain is generated.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Receipt represents the results of a transaction.
Control class message, carefully forward on the network.
No description provided by the author
No description provided by the author
Record changes for the same node, because all changes must be compatible, that is, NodeID/Addr must be equal, and effective Typ must also be equal, so these three pieces of information can only be recorded in RRC.
Required Reserve Change.
Required Reserve Information of the node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Control class message, carefully forward on the network.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TXIndex Transaction index.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Used to determine whether there is a local currency in the current chain, and if so, what is the type of the local currency.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Global chain currency query.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Signer encapsulates transaction signature handling.
No description provided by the author
StateDB is an EVM database for full state querying.
No description provided by the author
TxData This is implemented by DynamicFeeTx, LegacyTx and AccessListTx.
No description provided by the author

# Type aliases

AccessList is an EIP-2930 access list.
No description provided by the author
No description provided by the author
No description provided by the author
When the data block is confirmed, the callback function executed after the transaction is executed.
No description provided by the author
No description provided by the author
Pack deltas generated by multiple blocks together.
No description provided by the author
No description provided by the author
No description provided by the author
When the data block is generated, after the transaction is executed, the callback function executed before the stateRoot is generated header: generating block header result: proposing data.
No description provided by the author
shardid -> [0]:start height, [1]:length of missing heights.
No description provided by the author
No description provided by the author
Objects placed in the block, the ongoing pre-election list sorted by (Expire, ChainID), and generate MerkleTreeHash into the block header.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Control class message, carefully forward on the network.
No description provided by the author
Required Reserve Act Type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The callback function executed after the transaction is executed when the data block is verified block: verifying block.
It is used to save the ordered waterlines of all other shards in the same group after the execution of this block in this chain.
No description provided by the author