package
0.0.0-20181119063715-1c4572a29db3
Repository: https://github.com/mesment/chain33.git
Documentation: pkg.go.dev
# Functions
BitMapBit :index begin from 0, find the index bit, 1 or 0.
CalcBitMap big-end mode, that is bytes [0] [1] tx index: fedcba98 76543210cur is subset of ori, receipts are align with cur txs, if the tx ty is OK in cur, find the tx in ori and set the index to 1, this function return ori's bitmapif all tx failed, the setBit will normalize result and just return nil slice.
CalcSubBitMap : cur is subset of ori, data are align with ori, this function return cur's bitmapif all tx failed, the setBit will normalize result and just return nil slice.
CheckBlock : To check the block's validaty.
CheckFileExists : check file exists or not.
CheckFileIsExist : check whether the file exists or not.
CheckPathExisted : check the path exists or not.
CheckTxDup : check whether the tx is duplicated within the while chain.
CopyFile : copy file.
CreateCoinsTx : Create Coins Tx.
CreateManageTx : Create Manage Tx.
CreateNewBlock : Create a New Block.
CreateNoneBlock : Create None Block.
CreateNoneTx : Create None Tx.
CreateTxWithExecer : Create Tx With Execer.
CreateTxWithTxHeight : Create Tx With Tx Height.
DeleteFile : delete the file.
DirEmpty : DirEmpty.
DirExists : 检查文件夹是否存在.
ExecAndCheckBlock : Exec and Check Block.
ExecAndCheckBlock2 :.
ExecAndCheckBlockCB :.
ExecBlock : just exec block.
ExecKVMemSet : send kv values to memory store and set it in db.
ExecKVSetCommit : commit the data set opetation to db.
ExecKVSetRollback : do the db's roll back operation.
ExecTx : To send lists of txs within a block to exector for exection.
Genaddress : generate a address.
GenCoinsTxs : generate txs to be executed on exector coin.
GenNoneTxs : 创建一些 none 执行器的 交易列表,一般用于测试.
GenTxsTxHeigt : Gen Txs with Heigt.
GetParaExecName : 如果 name 没有 paraName 前缀,那么加上这个前缀.
HexToPrivkey : convert hex string to private key.
JSONPrint : print in json format.
MakeDir : MakeDir.
MakeStringToLower : 将给定的in字符串从pos开始一共count个转换为小写字母.
MakeStringToUpper : 将给定的in字符串从pos开始一共count个转换为大写字母.
OpenFile : OpenFile.
Pwd : Pwd.
ReadFile : read file.
ReportErrEventToFront 上报指定错误信息到指定模块,目前只支持从store,blockchain,wallet写数据库失败时上报错误信息到wallet模块,然后由钱包模块前端定时调用显示给客户.
WriteStringToFile : write content to file.