区块链浏览器每个区块的信息

发布于 2021-01-29 08:56:54

区块里面的sealerList,signatureList和预想的不一致,目前发现每发起一笔交易就会生成一个区块,看其它文档一般都是几个交易在一个区块或者时间到了打包一个区块;然后签名列表出现了三条记录,目前组织是两个,四节点,出现3个签名列表有点不太理解;还有区块里面的其它字段有没有说明的;
{
dbHash:"0x434876b96e81cf359f00010ec930f542fb955ca00c6f7d75570146cfce6ee96e"
extraData:[]
gasLimit:"0x0"
gasUsed:"0x0"
hash:"0x0b61fd1727cdf944333697c2eb9e1ae1113799e67a9ea8ce44865c3657515031"
logsBloom:"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
number:"0x31"
parentHash:"0xbe02ed2c64880de596de28feea1710b8f80cae05ba3682154f326a6bc77dd918"
receiptsRoot:"0x7f03982f0569d10712d9b2e62397245c9442ab073d44844456f62db067fef05d"
sealer:"0x0"
sealerList:[
"3db5588ff83ecbc74df74480eb56841ad788461b5af5fa28caf2a6fe2e0d843b5b5dbfed3082dc66c505ab532ef1cd8e38d8826b1f76c0ef0d83a781e55a2469"
"3e22b23d804beb4d7e5b9ca5f59b6a2288552e9d87e5b93fe03e30d40633b3c2d719560216d9fc508f9595362b5600d15553bdafb420c71558d71fcfabc9969b"
"4504d3d6a0e28252098a5d19708b9b4d30034104ed664567b7aadfd6276991159d09a21df7c982fe3acbe6dafbcdad89d826fb966eb7562fb883f25c8ac853cc"
"c41b74424fa1b906a88c20b8e9272c8b6e8abfd869c04da84d805d8f2ae33ce382a862092fb0459adb1e0f03111b6a4e2b9418536c8cf6319072e6b6f0d266ba"
]
signatureList:[
{
index:"0x0"
signature:"0xa7ff4a9b01f442d69e7f2621986bec2b193bcd1a6c9d0d5390c6dd0b11c92295094b4ac4ca93d6ee9b997803cc8bb84200fb218e47bc1a573fcfc0afdac7704300"
}
{
index:"0x3"
signature:"0x04b667f45f849002540235c752805a5d3f56072193f8eb8ef0b0eb2506bcee077e6bec607a77cfe2346d2901e7a42df2c28d8824eb6c06c8b71bf40776bbed4001"
}
{
index:"0x1"
signature:"0x4a549102b635e9504301ea7a043f6ca15b8aed92ca44ccaaf5dffd9cbcddac986e62a8478aeea8c2db2b700e96662233325b27f5d6d54ada69793b42720b7adf01"
}
]
stateRoot:"0x434876b96e81cf359f00010ec930f542fb955ca00c6f7d75570146cfce6ee96e"
timestamp:"0x1774b8f1b4e"
transactions:[
{
blockHash:"0x0b61fd1727cdf944333697c2eb9e1ae1113799e67a9ea8ce44865c3657515031"
blockLimit:"0x288"
blockNumber:"0x31"
chainId:"0x1"
extraData:"0x"
from:"0xa5b0d2e109ebc46333f4bbe5ce346ad24d6293de"
gas:"0x5f5e100"
gasPrice:"0x5f5e100"
groupId:"0x1"
hash:"0x75e77cc4f0d1d4fcafa2f3b348fddaf0ef86206410b365545b5ebea161d3c0d3"
input:"0xef5321f900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000026c630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006e89b8be7b3950000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e6c63e8b4ade4b9b0e59586e593810000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
nonce:"0x2e771e131c74be6cafa28b8e86735019f254f8108098dfd6e1ab4a3962cb820"
signature:{
r:"0x641d22290ff035577a6c108fc3f88652751aeac862085299c236549a5a692925"
s:"0x662054c14121c5c4895bed1acee932a89916aff327f5184f96840372d86fdd51"
signature:"0x641d22290ff035577a6c108fc3f88652751aeac862085299c236549a5a692925662054c14121c5c4895bed1acee932a89916aff327f5184f96840372d86fdd5101"
v:"0x1"
}
to:"0xed934f1f77a3f0e55c8454459edb191edf4b707e"
transactionIndex:"0x0"
value:"0x0"
}
]
transactionsRoot:"0x33961872423ac60a9f6b1a61d7e124bdd9d526328dc6b159cd88e7186a9f1fb3"
}

查看更多

关注者
0
被浏览
84
2 个回答
向彪
向彪 2021-02-01
一个来自于神秘湘西的程序猿,专注于区块链的应用落地研究,共享、共识、共建、共赢!~

看其它文档一般都是几个交易在一个区块或者时间到了打包一个区块

bcos 并发发交易就可以了 默认是1s还是0.5s出一个块的可以查查文档

向彪
向彪 2021-02-01
一个来自于神秘湘西的程序猿,专注于区块链的应用落地研究,共享、共识、共建、共赢!~

查了下文档:
https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/manual/configuration.html?highlight=%E5%85%B1%E8%AF%86%E6%89%93%E5%8C%85%E6%97%B6%E9%97%B4%E9%85%8D%E7%BD%AE#id27

考虑到PBFT模块打包太快会导致某些区块中仅打包1到2个很少的交易,浪费存储空间,FISCO BCOS v2.0.0-rc2在群组可变配置group.group_id.ini的[consensus]下引入min_block_generation_time配置项来控制PBFT共识打包的最短时间,即:共识节点打包时间超过min_block_generation_time且打包的交易数大于0才会开始共识流程,处理打包生成的新区块。

min_block_generation_time 默认为500ms
共识节点最长打包时间为1000ms,若超过1000ms新区块中打包到的交易数仍为0,共识模块会进入出空块逻辑,空块并不落盘;
min_block_generation_time 不可超过出空块时间1000ms,若设置值超过1000ms,系统默认min_block_generation_time为500ms

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览