# Functions
AssertConfig ...
BuildQueryType.
Bytes2Str , 35 , byte , b string , ,.
CacheToTxs.
CalcAddrTxsCountKey 。add ,del.
CalcConsensusParaTxsKey localdb title.
CalcLocalPrefix localdb key.
CalcRollbackKey key.
CalcStatePrefix localdb key.
CalcTxAddrDirHashKey hash ,key=TxAddrHash:addr:flag:height*100000 + index
.
CalcTxAddrHashKey hash ,key=TxAddrHash:addr:height*100000 + index
.
CalcTxShortHash txhash , 5.
CalcTxShortKey local db.
CallCreateTransaction.
CallCreateTx.
CallCreateTxJSON create tx by json.
CallExecNewTx.
CallQueryFunc.
CheckAmount.
CheckConsensusParaTxsKey para key.
CheckSign.
Clone.
Conf.
ConfigKey bug, key , mavl-config–{key} key -.
ConfSub.
CreateFormatTx.
CreateTxGroup , feeRate , GetProperFee.
Decode.
DecodeLog log.
Encode.
FindExecer.
FlagKV kv.
FlatConfig Flat.
FormatTx tx.
FormatTxEncode byte.
GetActionValue action value.
GetCliSysParam ...
GetDefaultCfgstring ...
GetEventName name id.
GetExecKey key.
GetLocalDBKeyList localdb key.
GetLogName ,.
GetParaExecName.
GetParaExecTitleName , title.
GetRealExecName name.
GetSignName.
GetSignType.
GetTxHeight.
GetTxTimeInterval.
InitCfg.
InitCfgString.
IsAllowExecName allow -> GetRealExecNamename 3 100.
IsAssetsTransfer.
IsNil.
IsNilP.
IsOK.
IsParaExecName.
IsSpecificParaExecName.
JSONToPB JSON protobuffer.
JSONToPBUTF8 utf8 bytes.
ListActionMethod list action.
ListMethod list Method.
ListMethodByType list Method type.
ListType list type.
LoadExecutorType.
LoadLog log.
ManageKey key.
MergeCfg ...
MergeConfig Merge.
ModifySubConfig json data modify.
MustDecode.
MustPBToJSON panic when error.
No description provided by the author
NewDplatformOSConfig ...
NewDplatformOSConfigNoInit ...
NewErrReceipt new Receipt.
No description provided by the author
NewQueryData new QueryData.
NewTransactionCache new.
Now.
ParseExpire parse expire to int from during or height.
PBToJSON.
PBToJSONUTF8.
ReadFile ...
RegExec ...
RegExecInit ...
RegFork Reg.
RegForkInit ...
No description provided by the author
No description provided by the author
RegistorExecutor.
SetCliSysParam ...
SetTimeDelta realtime - localtime 60s ,.
Since Since.
Size.
StatisticFlag key.
Str2Bytes , 13 , byte , byte , string, panic.
TotalFeeKey key.
TransactionSort map , title , title main map title , map.
TxCacheGet cache ,.
TxCacheSet cache.
TxsToCache.
VerifySignature ,.
# Constants
.
seed , index.
seed , index.
coin conversation.
DefaultCoinsSymbol.
coin conversation.
.
.
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
event.
event.
event.
event.
addChunkBlock.
ChunkRecord.
event.
event.
event.
event.
exec.
event.
event.
event.
event.
event.
mempool.
event.
.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
chunkBlock.
chunkBody.
ChunkRecord.
event.
title.
event.
BlockChain.
event.
event.
event.
event.
event.
event.
event.
title.
+title.
mempool.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
local store.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
seed.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
blockchain db.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
p2p.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
event.
exec type.
exec type.
exec type.
.
.
.
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
.
block 1000.
20M.
block size100M.
coin conversation.
header 10000.
MaxHeight forks , , fork, fork , fork MaxHeight
, fork
*/.
900.
coin conversation.
100K.
coin conversation.
.
.
UserKeyX.
UserKeyX.
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
Size1Kshiftlen tx 1k.
ty = 1 -> secp256k1ty = 2 -> ed25519ty = 3 -> sm2ty = 4 -> onetimeed25519ty = 5 -> RingBaseonED25519ty = 1+offset(1<<8) ->auth_ecdsaty = 2+offset(1<<8) -> auth_sm2.
coin conversation.
.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
log type.
TyLogTransfer coins.
UserKeyX.
# Variables
key.
,.
ConfigPrefix key.
para.
Debug.
.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
ErrHashNotExist BlockChain Error Types.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
ErrInvalidMainnetRPCAddr rpc.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
ErrNotSetInTransaction set.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
ErrPing p2p.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
dplatformos.
ErrWalletIsLocked wallet.
UserKeyX byte.
, expireBound height, expireBound blockTime.
key.
localdb.
key.
HighAllowPackHeight eg: current Height is 10000TxHeight is 10010=> Height <= TxHeight + HighAllowPackHeight=> Height >= TxHeight - LowAllowPackHeight : 10010 - 100 = 9910 , 10010 + 200 = 10210 (9910,10210)
, .
key.
LowAllowPackHeight low.
ManagePrefix key.
MaxAllowPackInterval.
NtpHosts ntp hosts.
UserKeyX byte.
localdb.
SystemLog log.
key.
key.
key.
TxHeightFlag TxHeight.
key.
UserKeyX byte.
# Structs
Account.
Account.
No description provided by the author
No description provided by the author
.
No description provided by the author
assert transfer struct.
No description provided by the author
No description provided by the author
No description provided by the author
Header mainHash , hash.
txs : receipts : mainHash : hash, mainHeight : , hash : hash height :.
BlockBodys.
BlockChain.
block : receipts :.
resp.
title.
head : txCount : txHashes :.
ID Block.
receipts : hash : hash height :.
No description provided by the author
No description provided by the author
No description provided by the author
block hash block add/del:1/2.
resp.
* p2p.
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
ChainParam.
currentHeight : mempoolSize : msgQueueSize :.
No description provided by the author
index, roothash title: , main startIndex: childHash: hash txCount:.
ChunkInfo chunk.
No description provided by the author
ChunkInfoMsg.
ChunkRecords.
No description provided by the author
.
Config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConfigSubModule.
ConfQuery.
Consensus.
No description provided by the author
No description provided by the author
No description provided by the author
DplatformOSConfig ...
block hash.
No description provided by the author
Exec.
No description provided by the author
No description provided by the author
No description provided by the author
ExecTypeBase.
No description provided by the author
block.
ForkList fork.
Forks fork.
No description provided by the author
No description provided by the author
No description provided by the author
version : parentHash : txHash : stateHash : height : blockTime : txCount : difficulty : , signature :.
resp.
seq header.
header.
No description provided by the author
HealthCheck.
hash childHash: roothash startIndex: index childHashIndex: roothash txCount:.
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
* inv.
No description provided by the author
No description provided by the author
* inv.
ty=MSG_TX MSG_BLOCK.
,.
ntp.
symbol.
No description provided by the author
merkle avl tree.
* p2p ,.
.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Log.
LogInfo loginfo.
No description provided by the author
Mempool.
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
Metrics.
No description provided by the author
*dht protos.
payAddr 1.
nobalance payAddr 1.
*
.
No description provided by the author
P2P.
*
.
No description provided by the author
* p2p.
.
.
*
.
*
.
*
.
* invs.
* p2p.
* mempool.
* p2p get net info req.
*
.
* p2p get peer req.
* p2p.
No description provided by the author
No description provided by the author
*
.
* P2P.
*
.
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
No description provided by the author
No description provided by the author
No description provided by the author
.
* p2p.
.
* P2P.
* p2p.
blockdetail : sequence : isSync:.
type: add/del , header: txDetails: title proofs: roothash childHash: roothash index: roothash.
para.
* peer.
No description provided by the author
* peer.
No description provided by the author
No description provided by the author
Pprof.
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
QueryData.
ty = 0 -> error Receipt ty = 1 -> CutFee //cut fee ,bug exec not ok ty = 2 -> exec ok.
No description provided by the author
.
(coins ).
No description provided by the author
No description provided by the author
No description provided by the author
ReceiptDataResult.
( ).
No description provided by the author
ReceiptLogResult log.
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
symbol.
symbol.
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
.
start : end : Isdetail : pid : peer.
,.
ChunkRecord start : Chunk end : Chunk Isdetail : Chunk Record ,false chunkNum--->chunkhash KV ,true pid : peer.
No description provided by the author
label.
symbol , execAddr , symbol.
No description provided by the author
symbol.
No description provided by the author
No description provided by the author
title height title.
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
title.
seq title.
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
hash , hash 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
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
from : to : amount : note :.
No description provided by the author
No description provided by the author
No description provided by the author
fromTx : []byte( Sprintf("%018d", height*100000 + index), height index ; , 。) count : 。 direction : ;0, ;1, 。.
No description provided by the author
No description provided by the author
,.
.
RPC.
seed : passwd :.
, ,
[prevhash].
Store.
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
db Pool Value.
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
* p2p topic.
No description provided by the author
No description provided by the author
.
No description provided by the author
TransactionCache.
No description provided by the author
No description provided by the author
No description provided by the author
: index: block , proof tx: receipt: proofs: hash block merkel.
No description provided by the author
No description provided by the author
merkle proof.
No description provided by the author
No description provided by the author
No description provided by the author
UnimplementedDplatformOSServer can be embedded to have forward compatible implementations.
UnimplementedP2PgserviceServer can be embedded to have forward compatible implementations.
No description provided by the author
No description provided by the author
No description provided by the author
*
.
* p2p.
No description provided by the author
Wallet.
No description provided by the author
No description provided by the author
privkey : label : addr : timeStamp :.
pwHash : randstr :.
isWalletLock : ,true ,false isAutoMining : ,true ,false isHasSeed : ,true ,false isTicketLock : ,true ,false ,.
tx tx : tx receipt : height : index : blocktime : amount : fromaddr : txhash : actionName : payload: ,.
No description provided by the author
passwd : timeout : ,0, , 0 , walletOrTicket : ,1 ,0.
# Interfaces
Amounter.
DplatformOSClient is the client API for DplatformOS service.
DplatformOSServer is the server API for DplatformOS service.
ExecutorType.
LogType.
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
P2PgserviceClient is the client API for P2Pgservice service.
P2PgserviceServer is the server API for P2Pgservice service.
ParaCrossTx.
TxGroup ,Transactions Transaction.