Documentation ¶
Index ¶
- func AddressToID(input string) (addr int64)
- func CheckSignature(i *map[string]interface{}, name string) error
- func ClearTmp(blocks map[int64]string)
- func ContractConditions(p *Parser, names ...interface{}) (bool, error)
- func DBAmount(tblname, column string, id int64) decimal.Decimal
- func DBFreeRequest(p *Parser, tblname string, id interface{}, idname string) error
- func DBGetList(tblname string, name string, offset, limit int64, order string, where string, ...) ([]interface{}, error)
- func DBGetTable(tblname string, columns string, offset, limit int64, order string, ...) ([]interface{}, error)
- func DBInsert(p *Parser, tblname string, params string, val ...interface{}) (ret int64, err error)
- func DBInsertReport(p *Parser, tblname string, params string, val ...interface{}) (ret int64, err error)
- func DBInt(tblname string, name string, id int64) (int64, error)
- func DBIntExt(tblname string, name string, id interface{}, idname string) (ret int64, err error)
- func DBIntWhere(tblname string, name string, where string, params ...interface{}) (ret int64, err error)
- func DBString(tblname string, name string, id int64) (string, error)
- func DBStringExt(tblname string, name string, id interface{}, idname string) (string, error)
- func DBStringWhere(tblname string, name string, where string, params ...interface{}) (string, error)
- func DBUpdate(p *Parser, tblname string, id int64, params string, val ...interface{}) (err error)
- func DBUpdateExt(p *Parser, tblname string, column string, value interface{}, params string, ...) (err error)
- func Float(v interface{}) (ret float64)
- func HexToBytes(hexdata string) ([]byte, error)
- func IDToAddress(id int64) (out string)
- func Int(val string) int64
- func IsContract(p *Parser, names ...interface{}) bool
- func IsGovAccount(p *Parser, citizen int64) bool
- func Len(in []interface{}) int64
- func Money(v interface{}) (ret decimal.Decimal)
- func NewStateFunc(p *Parser, country, currency string) (err error)
- func PubToID(hexkey string) int64
- func Sha256(text string) string
- func StackCont(p interface{}, name string)
- func StateTable(p *Parser, tblname string) string
- func StateTableTx(p *Parser, tblname string) string
- func StateVal(p *Parser, name string) string
- func Str(v interface{}) (ret string)
- func UpdateContract(p *Parser, name, value, conditions string) error
- func UpdateMenu(p *Parser, name, value, conditions string) error
- func UpdatePage(p *Parser, name, value, menu, conditions string) error
- func UpdateParam(p *Parser, name, value, conditions string) error
- type Parser
- func (p *Parser) AccessChange(table, name string) error
- func (p *Parser) AccessColumns(table string, columns []string) error
- func (p *Parser) AccessRights(condition string, iscondition bool) error
- func (p *Parser) AccessTable(table, action string) error
- func (p *Parser) ActivateContract() error
- func (p *Parser) ActivateContractFront() error
- func (p *Parser) ActivateContractInit() error
- func (p *Parser) ActivateContractRollback() error
- func (p *Parser) AllTxParser() error
- func (p *Parser) AppendMenu() error
- func (p *Parser) AppendMenuFront() error
- func (p *Parser) AppendMenuInit() error
- func (p *Parser) AppendMenuRollback() error
- func (p *Parser) AppendPage() error
- func (p *Parser) AppendPageFront() error
- func (p *Parser) AppendPageInit() error
- func (p *Parser) AppendPageRollback() error
- func (p *Parser) BlockError(err error)
- func (p *Parser) CallContract(flags int) (err error)
- func (p *Parser) ChangeNodeKey() error
- func (p *Parser) ChangeNodeKeyDLT() error
- func (p *Parser) ChangeNodeKeyDLTFront() error
- func (p *Parser) ChangeNodeKeyDLTInit() error
- func (p *Parser) ChangeNodeKeyDLTRollback() error
- func (p *Parser) ChangeNodeKeyFront() error
- func (p *Parser) ChangeNodeKeyInit() error
- func (p *Parser) ChangeNodeKeyRollback() error
- func (p *Parser) CheckBlockHeader() error
- func (p *Parser) CheckInputData(data map[string]string) error
- func (p *Parser) CheckLogTx(txBinary []byte, transactions, txQueue bool) error
- func (p *Parser) CheckTableExists(table string) (bool, error)
- func (p *Parser) DLTChangeHostVote() error
- func (p *Parser) DLTChangeHostVoteFront() error
- func (p *Parser) DLTChangeHostVoteInit() error
- func (p *Parser) DLTChangeHostVoteRollback() error
- func (p *Parser) DLTTransfer() error
- func (p *Parser) DLTTransferFront() error
- func (p *Parser) DLTTransferInit() error
- func (p *Parser) DLTTransferRollback() error
- func (p *Parser) DeleteQueueTx(hashHex []byte) error
- func (p *Parser) EditColumn() error
- func (p *Parser) EditColumnFront() error
- func (p *Parser) EditColumnInit() error
- func (p *Parser) EditColumnRollback() error
- func (p *Parser) EditContract() error
- func (p *Parser) EditContractFront() error
- func (p *Parser) EditContractInit() error
- func (p *Parser) EditContractRollback() error
- func (p *Parser) EditLang() error
- func (p *Parser) EditLangFront() error
- func (p *Parser) EditLangInit() error
- func (p *Parser) EditLangRollback() error
- func (p *Parser) EditMenu() error
- func (p *Parser) EditMenuFront() error
- func (p *Parser) EditMenuInit() error
- func (p *Parser) EditMenuRollback() error
- func (p *Parser) EditPage() error
- func (p *Parser) EditPageFront() error
- func (p *Parser) EditPageInit() error
- func (p *Parser) EditPageRollback() error
- func (p *Parser) EditSign() error
- func (p *Parser) EditSignFront() error
- func (p *Parser) EditSignInit() error
- func (p *Parser) EditSignRollback() error
- func (p *Parser) EditStateParameters() error
- func (p *Parser) EditStateParametersFront() error
- func (p *Parser) EditStateParametersInit() error
- func (p *Parser) EditStateParametersRollback() error
- func (p *Parser) EditTable() error
- func (p *Parser) EditTableFront() error
- func (p *Parser) EditTableInit() error
- func (p *Parser) EditTableRollback() error
- func (p *Parser) EditWallet() error
- func (p *Parser) EditWalletFront() error
- func (p *Parser) EditWalletInit() error
- func (p *Parser) EditWalletRollback() error
- func (p *Parser) ErrInfo(verr interface{}) error
- func (p *Parser) EvalIf(conditions string) (bool, error)
- func (p *Parser) FirstBlock() error
- func (p *Parser) FirstBlockFront() error
- func (p *Parser) FirstBlockInit() error
- func (p *Parser) FirstBlockRollback() error
- func (p *Parser) FormatBlockData() string
- func (p *Parser) FormatTxMap() string
- func (p *Parser) GetBlockInfo() *utils.BlockData
- func (p *Parser) GetBlocks(blockID int64, host string, rollbackBlocks, goroutineName string, ...) error
- func (p *Parser) GetContractLimit() (ret int64)
- func (p *Parser) GetInfoBlock() error
- func (p *Parser) GetOldBlocks(walletID, StateID, blockID int64, host string, goroutineName string, ...) error
- func (p *Parser) GetTxMaps(fields []map[string]string) error
- func (p *Parser) InsertIntoBlockchain() error
- func (p *Parser) NewAccount() error
- func (p *Parser) NewAccountFront() error
- func (p *Parser) NewAccountInit() error
- func (p *Parser) NewAccountRollback() error
- func (p *Parser) NewColumn() error
- func (p *Parser) NewColumnFront() error
- func (p *Parser) NewColumnInit() error
- func (p *Parser) NewColumnRollback() error
- func (p *Parser) NewContract() error
- func (p *Parser) NewContractFront() error
- func (p *Parser) NewContractInit() error
- func (p *Parser) NewContractRollback() error
- func (p *Parser) NewLang() error
- func (p *Parser) NewLangFront() error
- func (p *Parser) NewLangInit() error
- func (p *Parser) NewLangRollback() error
- func (p *Parser) NewMenu() error
- func (p *Parser) NewMenuFront() error
- func (p *Parser) NewMenuInit() error
- func (p *Parser) NewMenuRollback() error
- func (p *Parser) NewPage() error
- func (p *Parser) NewPageFront() error
- func (p *Parser) NewPageInit() error
- func (p *Parser) NewPageRollback() error
- func (p *Parser) NewSign() error
- func (p *Parser) NewSignFront() error
- func (p *Parser) NewSignInit() error
- func (p *Parser) NewSignRollback() error
- func (p *Parser) NewState() error
- func (p *Parser) NewStateFront() error
- func (p *Parser) NewStateGlobal(country, currency string) error
- func (p *Parser) NewStateInit() error
- func (p *Parser) NewStateMain(country, currency string) (id string, err error)
- func (p *Parser) NewStateParameters() error
- func (p *Parser) NewStateParametersFront() error
- func (p *Parser) NewStateParametersInit() error
- func (p *Parser) NewStateParametersRollback() error
- func (p *Parser) NewStateRollback() error
- func (p *Parser) NewTable() error
- func (p *Parser) NewTableFront() error
- func (p *Parser) NewTableInit() error
- func (p *Parser) NewTableRollback() error
- func (p *Parser) ParseBlock() error
- func (p *Parser) ParseDataFull(blockGenerator bool) error
- func (p *Parser) ParseDataGate(onlyTx bool) error
- func (p *Parser) ParseDataRollback() error
- func (p *Parser) ParseInit() error
- func (p *Parser) ParseTransaction(transactionBinaryData *[]byte) ([][]byte, error)
- func (p *Parser) RestoreAccess() error
- func (p *Parser) RestoreAccessActive() error
- func (p *Parser) RestoreAccessActiveFront() error
- func (p *Parser) RestoreAccessActiveInit() error
- func (p *Parser) RestoreAccessActiveRollback() error
- func (p *Parser) RestoreAccessClose() error
- func (p *Parser) RestoreAccessCloseFront() error
- func (p *Parser) RestoreAccessCloseInit() error
- func (p *Parser) RestoreAccessCloseRollback() error
- func (p *Parser) RestoreAccessFront() error
- func (p *Parser) RestoreAccessInit() error
- func (p *Parser) RestoreAccessRequest() error
- func (p *Parser) RestoreAccessRequestFront() error
- func (p *Parser) RestoreAccessRequestInit() error
- func (p *Parser) RestoreAccessRequestRollback() error
- func (p *Parser) RestoreAccessRollback() error
- func (p *Parser) RollbackTo(binaryData []byte, skipCurrent bool) error
- func (p *Parser) RollbackToBlockID(blockID int64) error
- func (p *Parser) RollbackTransactions() error
- func (p *Parser) TxParser(hash, binaryTx []byte, myTx bool) error
- func (p *Parser) UpdBlockInfo()
- func (p *Parser) UpdFullNodes() error
- func (p *Parser) UpdFullNodesFront() error
- func (p *Parser) UpdFullNodesInit() error
- func (p *Parser) UpdFullNodesRollback() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToID ¶
AddressToID converts the string representation of the wallet number to a numeric
func CheckSignature ¶
CheckSignature checks the additional signatures for the contract
func ContractConditions ¶
ContractConditions calls the 'conditions' function for each of the contracts specified in the parameters
func DBAmount ¶
DBAmount returns the value of the 'amount' column for the record with the 'id' value in the 'column' column
func DBFreeRequest ¶
DBFreeRequest is a free function that is needed to find the record with the specified value in the 'idname' column.
func DBGetList ¶
func DBGetList(tblname string, name string, offset, limit int64, order string, where string, params ...interface{}) ([]interface{}, error)
DBGetList returns a list of column values with the specified 'offset', 'limit', 'where'
func DBGetTable ¶
func DBGetTable(tblname string, columns string, offset, limit int64, order string, where string, params ...interface{}) ([]interface{}, error)
DBGetTable returns an array of values of the specified columns when there is selection of data 'offset', 'limit', 'where'
func DBInsertReport ¶
func DBInsertReport(p *Parser, tblname string, params string, val ...interface{}) (ret int64, err error)
DBInsertReport inserts a record into the specified report table
func DBIntExt ¶
DBIntExt returns the numeric value of the 'name' column for the record with the specified value of the 'idname' field
func DBIntWhere ¶
func DBIntWhere(tblname string, name string, where string, params ...interface{}) (ret int64, err error)
DBIntWhere returns the column value based on the 'where' condition and 'params' values for this condition
func DBStringExt ¶
DBStringExt returns the value of 'name' column for the record with the specified value of the 'idname' field
func DBStringWhere ¶
func DBStringWhere(tblname string, name string, where string, params ...interface{}) (string, error)
DBStringWhere returns the column value based on the 'where' condition and 'params' values for this condition
func DBUpdateExt ¶
func DBUpdateExt(p *Parser, tblname string, column string, value interface{}, params string, val ...interface{}) (err error)
DBUpdateExt updates the record in the specified table. You can specify 'where' query in params and then the values for this query
func HexToBytes ¶
HexToBytes converts the hexadecimal representation to []byte
func IDToAddress ¶
IDToAddress converts the identifier of account to a string of the form XXXX -...- XXXX
func IsContract ¶
IsContract checks whether the name of the executable contract matches one of the names listed in the parameters.
func IsGovAccount ¶
IsGovAccount checks whether the specified account is the owner of the state
func NewStateFunc ¶
NewStateFunc creates a new country
func PubToID ¶
PubToID returns a numeric identifier for the public key specified in the hexadecimal form.
func StackCont ¶
func StackCont(p interface{}, name string)
StackCont adds an element to the stack of contract call or removes the top element when name is empty
func StateTable ¶
StateTable adds a prefix with the state number to the table name
func StateTableTx ¶
StateTable adds a prefix with the state number to the table name
func UpdateContract ¶
UpdateContract updates the content and condition of contract with the specified name
func UpdateMenu ¶
UpdateMenu updates the value and condition for the specified menu
func UpdatePage ¶
UpdatePage updates the text, menu and condition of the specified page
func UpdateParam ¶
UpdateParam updates the value and condition of parameter with the specified name for the state
Types ¶
type Parser ¶
type Parser struct { *utils.DCDB TxMaps *txMapsType TxMap map[string][]byte TxMapS map[string]string TxIds int // count of transactions TxMapArr []map[string][]byte TxMapsArr []*txMapsType BlockData *utils.BlockData PrevBlock *utils.BlockData BinaryData []byte CurrentBlockID int64 TxHash string TxSlice [][]byte MerkleRoot []byte GoroutineName string CurrentVersion string MrklRoot []byte PublicKeys [][]byte TxUserID int64 TxCitizenID int64 TxWalletID int64 TxStateID uint32 TxStateIDStr string TxTime int64 TxCost int64 // Maximum cost of executing contract TxUsedCost decimal.Decimal // Used cost of CPU resources // newPublicKeysHex [3][]byte TxPtr interface{} // Pointer to the corresponding struct in consts/struct.go TxData map[string]interface{} TxContract *smart.Contract TxVars map[string]string AllPkeys map[string]string States map[int64]string // contains filtered or unexported fields }
Parser is a structure for parsing transactions
func (*Parser) AccessChange ¶
AccessChange checks rights of changing the table
func (*Parser) AccessColumns ¶
AccessColumns checks access rights to the columns
func (*Parser) AccessRights ¶
AccessRights checks the access right by executing the condition value
func (*Parser) AccessTable ¶
AccessTable checks the access right to the table
func (*Parser) ActivateContract ¶
ActivateContract is a main function of ActivateContract transaction
func (*Parser) ActivateContractFront ¶
ActivateContractFront checks conditions of ActivateContract transaction
func (*Parser) ActivateContractInit ¶
ActivateContractInit initialize ActivateContract transaction
func (*Parser) ActivateContractRollback ¶
ActivateContractRollback rollbacks ActivateContract transaction
func (*Parser) AllTxParser ¶
AllTxParser parses new transactions
func (*Parser) AppendMenu ¶
AppendMenu proceeds AppendMenu transaction
func (*Parser) AppendMenuFront ¶
AppendMenuFront checks conditions of AppendMenu transaction
func (*Parser) AppendMenuInit ¶
AppendMenuInit initializes AppendMenu transaction
func (*Parser) AppendMenuRollback ¶
AppendMenuRollback rollbacks AppendMenu transaction
func (*Parser) AppendPage ¶
AppendPage proceeds AppendPage transaction
func (*Parser) AppendPageFront ¶
AppendPageFront checks conditions of AppendPage transaction
func (*Parser) AppendPageInit ¶
AppendPageInit initialize AppendPage transaction
func (*Parser) AppendPageRollback ¶
AppendPageRollback rollbacks AppendPage transaction
func (*Parser) BlockError ¶
BlockError writes the error of the transaction in the transactions_status table
func (*Parser) CallContract ¶
CallContract calls the contract functions according to the specified flags
func (*Parser) ChangeNodeKey ¶
ChangeNodeKey proceeds ChangeNodeKey transaction
func (*Parser) ChangeNodeKeyDLT ¶
ChangeNodeKeyDLT proceeds ChangeNodeKeyDLT transaction
func (*Parser) ChangeNodeKeyDLTFront ¶
ChangeNodeKeyDLTFront check conditions of ChangeNodeKeyDLT transaction
func (*Parser) ChangeNodeKeyDLTInit ¶
ChangeNodeKeyDLTInit initializes ChangeNodeKeyDLT transaction
func (*Parser) ChangeNodeKeyDLTRollback ¶
ChangeNodeKeyDLTRollback rollbacks ChangeNodeKeyDLT transaction
func (*Parser) ChangeNodeKeyFront ¶
ChangeNodeKeyFront checks conditions of ChangeNodeKey transaction
func (*Parser) ChangeNodeKeyInit ¶
ChangeNodeKeyInit initializes ChangeNodeKey transaction
func (*Parser) ChangeNodeKeyRollback ¶
ChangeNodeKeyRollback rollbacks ChangeNodeKey transaction
func (*Parser) CheckBlockHeader ¶
CheckBlockHeader checks the block header
func (*Parser) CheckInputData ¶
CheckInputData checks the each item of data
func (*Parser) CheckLogTx ¶
CheckLogTx checks if this transaction exists This is protection against dos, when one transaction could be sent a million times and it would have successfully passed a frontal test
func (*Parser) CheckTableExists ¶
CheckTableExists checks if the table exists
func (*Parser) DLTChangeHostVote ¶
DLTChangeHostVote proceeds DLTChangeHostVote transaction
func (*Parser) DLTChangeHostVoteFront ¶
DLTChangeHostVoteFront checks conditions of DLTChangeHostVote transaction
func (*Parser) DLTChangeHostVoteInit ¶
DLTChangeHostVoteInit initializes DLTChangeHostVote transaction
func (*Parser) DLTChangeHostVoteRollback ¶
DLTChangeHostVoteRollback rollbacks DLTChangeHostVote transaction
func (*Parser) DLTTransfer ¶
DLTTransfer proceeds DLTTransfer transaction
func (*Parser) DLTTransferFront ¶
DLTTransferFront checks conditions DLTTransfer transaction
func (*Parser) DLTTransferInit ¶
DLTTransferInit initializes DLTTransfer transaction
func (*Parser) DLTTransferRollback ¶
DLTTransferRollback rollbacks DLTTransfer transaction
func (*Parser) DeleteQueueTx ¶
DeleteQueueTx deletes a transaction from the queue
func (*Parser) EditColumn ¶
EditColumn proceeds EditColumn transaction
func (*Parser) EditColumnFront ¶
EditColumnFront checks conditions of EditColumn transaction
func (*Parser) EditColumnInit ¶
EditColumnInit initializes EditColumn transaction
func (*Parser) EditColumnRollback ¶
EditColumnRollback rollbacks EditColumn transaction
func (*Parser) EditContract ¶
EditContract proceeds EditContract transaction
func (*Parser) EditContractFront ¶
EditContractFront checks conditions of EditContract transaction
func (*Parser) EditContractInit ¶
EditContractInit initializes EditContract transaction
func (*Parser) EditContractRollback ¶
EditContractRollback rollbacks EditContract transaction
func (*Parser) EditLangFront ¶
EditLangFront checks conditions of EditLang transaction
func (*Parser) EditLangInit ¶
EditLangInit initializes EditLang transaction
func (*Parser) EditLangRollback ¶
EditLangRollback rollbacks EditLang transaction
func (*Parser) EditMenuFront ¶
EditMenuFront checks conditions of EditMenu transaction
func (*Parser) EditMenuInit ¶
EditMenuInit initializes EditMenu transaction
func (*Parser) EditMenuRollback ¶
EditMenuRollback rollbacks EditMenu transaction
func (*Parser) EditPageFront ¶
EditPageFront checks conditions of EditPage transaction
func (*Parser) EditPageInit ¶
EditPageInit initializes EditPage transaction
func (*Parser) EditPageRollback ¶
EditPageRollback rollbacks EditPage transaction
func (*Parser) EditSignFront ¶
EditSignFront checks conditions of EditSign transaction
func (*Parser) EditSignInit ¶
EditSignInit initializes EditSign transaction
func (*Parser) EditSignRollback ¶
EditSignRollback rollbacks EditSign transaction
func (*Parser) EditStateParameters ¶
EditStateParameters proceeds EditStateParameters transaction
func (*Parser) EditStateParametersFront ¶
EditStateParametersFront checks conditions of EditStateParameters transaction
func (*Parser) EditStateParametersInit ¶
EditStateParametersInit initializes EditStateParameters transaction
func (*Parser) EditStateParametersRollback ¶
EditStateParametersRollback rollbacks EditStateParameters transaction
func (*Parser) EditTableFront ¶
EditTableFront checks conditions of EditTable transaction
func (*Parser) EditTableInit ¶
EditTableInit initializes EditTable transaction
func (*Parser) EditTableRollback ¶
EditTableRollback rollbacks EditTable transaction
func (*Parser) EditWallet ¶
EditWallet proceeds EditWallet transaction
func (*Parser) EditWalletFront ¶
EditWalletFront checks conditions of EditWallet transaction
func (*Parser) EditWalletInit ¶
EditWalletInit initializes EditWallet transaction
func (*Parser) EditWalletRollback ¶
EditWalletRollback rollbacks EditWallet transaction
func (*Parser) FirstBlock ¶
FirstBlock proceeds FirstBlock transaction
func (*Parser) FirstBlockFront ¶
FirstBlockFront checks conditions of FirstBlock transaction
func (*Parser) FirstBlockInit ¶
FirstBlockInit initializes FirstBlock transaction
func (*Parser) FirstBlockRollback ¶
FirstBlockRollback rollbacks FirstBlock transaction
func (*Parser) FormatBlockData ¶
FormatBlockData returns formated block data
func (*Parser) FormatTxMap ¶
FormatTxMap returns the formated TxMap
func (*Parser) GetBlockInfo ¶
GetBlockInfo returns BlockData structure
func (*Parser) GetBlocks ¶
func (p *Parser) GetBlocks(blockID int64, host string, rollbackBlocks, goroutineName string, dataTypeBlockBody int64) error
GetBlocks gets blocks
func (*Parser) GetContractLimit ¶
GetContractLimit returns the default maximal cost of contract
func (*Parser) GetInfoBlock ¶
GetInfoBlock returns the latest block
func (*Parser) GetOldBlocks ¶
func (p *Parser) GetOldBlocks(walletID, StateID, blockID int64, host string, goroutineName string, dataTypeBlockBody int64) error
GetOldBlocks gets previous blocks
func (*Parser) InsertIntoBlockchain ¶
InsertIntoBlockchain inserts a block into the blockchain
func (*Parser) NewAccount ¶
NewAccount proceeds NewAccount transaction
func (*Parser) NewAccountFront ¶
NewAccountFront checks conditions of NewAccount transaction
func (*Parser) NewAccountInit ¶
NewAccountInit initializes NewAccount transaction
func (*Parser) NewAccountRollback ¶
NewAccountRollback rollbacks NewAccount transaction
func (*Parser) NewColumnFront ¶
NewColumnFront checks conditions of NewColumn transaction
func (*Parser) NewColumnInit ¶
NewColumnInit initializes NewColumn transaction
func (*Parser) NewColumnRollback ¶
NewColumnRollback rollbacks NewColumn transaction
func (*Parser) NewContract ¶
NewContract proceeds NewContract transaction
func (*Parser) NewContractFront ¶
NewContractFront checks conditions of NewContract transaction
func (*Parser) NewContractInit ¶
NewContractInit initializes NewContract transaction
func (*Parser) NewContractRollback ¶
NewContractRollback rollbacks NewContract transaction
func (*Parser) NewLangFront ¶
NewLangFront checks conditions of NewLang transaction
func (*Parser) NewLangInit ¶
NewLangInit initializes NewLang transaction
func (*Parser) NewLangRollback ¶
NewLangRollback rollbacks NewLang transaction
func (*Parser) NewMenuFront ¶
NewMenuFront checks conditions of NewMenu transaction
func (*Parser) NewMenuInit ¶
NewMenuInit initializes NewMenu transaction
func (*Parser) NewMenuRollback ¶
NewMenuRollback rollbacks NewMenu transaction
func (*Parser) NewPageFront ¶
NewPageFront checks conditions of NewPage transaction
func (*Parser) NewPageInit ¶
NewPageInit initializes NewPage transaction
func (*Parser) NewPageRollback ¶
NewPageRollback rollbacks NewPage transaction
func (*Parser) NewSignFront ¶
NewSignFront checks conditions of NewSign transaction
func (*Parser) NewSignInit ¶
NewSignInit initializes NewSign transaction
func (*Parser) NewSignRollback ¶
NewSignRollback rollbacks NewSign transaction
func (*Parser) NewStateFront ¶
NewStateFront checks conditions of NewState transaction
func (*Parser) NewStateGlobal ¶
NewStateGlobal checks if the state or the currency exists
func (*Parser) NewStateInit ¶
NewStateInit initializes NewState transaction
func (*Parser) NewStateMain ¶
NewStateMain creates state tables in the database
func (*Parser) NewStateParameters ¶
NewStateParameters proceeds NewStateParameters transaction
func (*Parser) NewStateParametersFront ¶
NewStateParametersFront checks conditions of NewStateParameters transaction
func (*Parser) NewStateParametersInit ¶
NewStateParametersInit initializes NewStateParameters transaction
func (*Parser) NewStateParametersRollback ¶
NewStateParametersRollback rollbacks NewStateParameters transaction
func (*Parser) NewStateRollback ¶
NewStateRollback rollbacks NewState transaction
func (*Parser) NewTableFront ¶
NewTableFront checks conditions of NewTable transaction
func (*Parser) NewTableInit ¶
NewTableInit initializes NewTable transaction
func (*Parser) NewTableRollback ¶
NewTableRollback rollbacks NewTable transaction
func (*Parser) ParseDataFull ¶
ParseDataFull checks the condiitions and proceeds of transactions Frontal check + adding the data from the block to a table and info_block
func (*Parser) ParseDataGate ¶
ParseDataGate checks conditions of transactions from the gate
func (*Parser) ParseDataRollback ¶
ParseDataRollback rollbacks blocks
func (*Parser) ParseTransaction ¶
ParseTransaction parses a transaction
func (*Parser) RestoreAccess ¶
RestoreAccess proceeds RestoreAccess transaction
func (*Parser) RestoreAccessActive ¶
RestoreAccessActive proceeds RestoreAccessActive transaction
func (*Parser) RestoreAccessActiveFront ¶
RestoreAccessActiveFront checks conditions of RestoreAccessActive transaction
func (*Parser) RestoreAccessActiveInit ¶
RestoreAccessActiveInit initializes RestoreAccessActive transaction
func (*Parser) RestoreAccessActiveRollback ¶
RestoreAccessActiveRollback rollbacks RestoreAccessActive transaction
func (*Parser) RestoreAccessClose ¶
RestoreAccessClose proceeds RestoreAccessClose transaction
func (*Parser) RestoreAccessCloseFront ¶
RestoreAccessCloseFront checks conditions of RestoreAccessClose transaction
func (*Parser) RestoreAccessCloseInit ¶
RestoreAccessCloseInit initializes RestoreAccessClose transaction
func (*Parser) RestoreAccessCloseRollback ¶
RestoreAccessCloseRollback rollbacks RestoreAccessClose transaction
func (*Parser) RestoreAccessFront ¶
RestoreAccessFront checks conditions of RestoreAccess transaction
func (*Parser) RestoreAccessInit ¶
RestoreAccessInit initializes RestoreAccess transaction
func (*Parser) RestoreAccessRequest ¶
RestoreAccessRequest proceeds RestoreAccessRequest transaction
func (*Parser) RestoreAccessRequestFront ¶
RestoreAccessRequestFront checks conditions of RestoreAccessRequest transaction
func (*Parser) RestoreAccessRequestInit ¶
RestoreAccessRequestInit initializes RestoreAccessRequest transaction
func (*Parser) RestoreAccessRequestRollback ¶
RestoreAccessRequestRollback rollbacks RestoreAccessRequest transaction
func (*Parser) RestoreAccessRollback ¶
RestoreAccessRollback rollbacks RestoreAccess transaction
func (*Parser) RollbackTo ¶
RollbackTo rollbacks proceeded transactions If the error appears during the checking of transactions, call the rollback of all transactions
func (*Parser) RollbackToBlockID ¶
RollbackToBlockID rollbacks blocks till blockID
func (*Parser) RollbackTransactions ¶
RollbackTransactions is reserved
func (*Parser) UpdFullNodes ¶
UpdFullNodes proceeds UpdFullNodes transaction
func (*Parser) UpdFullNodesFront ¶
UpdFullNodesFront checks conditions of UpdFullNodes transaction
func (*Parser) UpdFullNodesInit ¶
UpdFullNodesInit initializes UpdFullNodes transaction
func (*Parser) UpdFullNodesRollback ¶
UpdFullNodesRollback rollbacks UpdFullNodes transaction
Source Files ¶
- activate_contract.go
- append_menu.go
- append_page.go
- change_node_key.go
- change_node_key_dlt.go
- common.go
- common_auto_rollback.go
- common_check_block_header.go
- common_general_check.go
- common_general_rollback.go
- common_get_blocks.go
- common_get_tx_maps.go
- common_parse_block.go
- common_parse_data_front.go
- common_parse_data_full.go
- common_parse_data_gate.go
- common_parse_data_lite.go
- common_parse_data_rollback.go
- common_parse_transaction.go
- common_rollback.go
- common_rollback_aI.go
- common_rollback_to_block_id.go
- common_rollback_transactions.go
- common_selective_logging_and_upd.go
- common_selective_rollback.go
- common_tx_parser.go
- common_upd_block_info.go
- composite_tx.go
- dlt_change_host_vote.go
- dlt_transfer.go
- edit_column.go
- edit_contract.go
- edit_lang.go
- edit_menu.go
- edit_page.go
- edit_sign.go
- edit_state_paremeters.go
- edit_table.go
- edit_wallet.go
- first_block.go
- new_account.go
- new_column.go
- new_contract.go
- new_lang.go
- new_menu.go
- new_page.go
- new_sign.go
- new_state.go
- new_state_paremeters.go
- new_table.go
- restore_access.go
- restore_access_active.go
- restore_access_close.go
- restore_access_request.go
- smart_p.go
- upd_full_nodes.go