加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 52.72 KB
一键复制 编辑 原始数据 按行查看 历史
郑迎亚 提交于 2021-03-10 20:57 . a
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="description" content="A live blockchain demo in a browser."><meta name="author" content="Anders Brownworth"><link rel="icon" href="/favicon.ico"><title>Blockchain Demo</title><link rel="stylesheet" href="/blockchain/stylesheets/lib/bootstrap.min.css"><link rel="stylesheet" href="/blockchain/stylesheets/lib/bootstrap-theme.min.css"><link rel="stylesheet" href="/blockchain/stylesheets/lib/bootstrap-horizon.css"><link rel="stylesheet" href="/blockchain/stylesheets/lib/ladda-themeless.min.css"><link rel="stylesheet" href="/blockchain/stylesheets/lib/ie10-viewport-bug-workaround.css"><link rel="stylesheet" href="/blockchain/stylesheets/blockchain.css"><script src="/blockchain/javascripts/lib/jquery.min.js"></script><script src="/blockchain/javascripts/lib/bootstrap.min.js"></script><script src="/blockchain/javascripts/lib/spin.min.js"></script><script src="/blockchain/javascripts/lib/ladda.min.js"></script><script src="/blockchain/javascripts/lib/ie10-viewport-bug-workaround.js"></script><script src="/blockchain/javascripts/lib/sha256.js"></script><script src="/blockchain/javascripts/blockchain.js"></script></head><body><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container"><div class="navbar-header"><button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button></div></div></nav><div class="container-fluid"><div class="row row-horizon"><div class="col-xs-7"><div class="well" id="block1chain1well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block1chain1number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block1chain1number" type="number" value="1" onchange="updateChain(1, 1);" onkeyup="updateChain(1, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block1chain1nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block1chain1nonce" type="text" value="16651" onkeyup="updateChain(1, 1);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block1chain1coinbasevalue" type="text" value="100.00" onkeyup="updateChain(1, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block1chain1coinbaseto" type="text" value="Anders" onkeyup="updateChain(1, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block1chain1previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block1chain1previous" type="text" value="0000000000000000000000000000000000000000000000000000000000000000"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block1chain1hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block1chain1hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block1chain1mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block2chain1well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block2chain1number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block2chain1number" type="number" value="2" onchange="updateChain(2, 1);" onkeyup="updateChain(2, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block2chain1nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block2chain1nonce" type="text" value="215458" onkeyup="updateChain(2, 1);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain1coinbasevalue" type="text" value="100.00" onkeyup="updateChain(2, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain1coinbaseto" type="text" value="Anders" onkeyup="updateChain(2, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain1tx0value" type="text" value="10.00" onkeyup="updateChain(2, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain1tx0from" type="text" value="Anders" onkeyup="updateChain(2, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain1tx0to" type="text" value="Sophia" onkeyup="updateChain(2, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain1tx1value" type="text" value="20.00" onkeyup="updateChain(2, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain1tx1from" type="text" value="Anders" onkeyup="updateChain(2, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain1tx1to" type="text" value="Lucas" onkeyup="updateChain(2, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain1tx2value" type="text" value="15.00" onkeyup="updateChain(2, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain1tx2from" type="text" value="Anders" onkeyup="updateChain(2, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain1tx2to" type="text" value="Emily" onkeyup="updateChain(2, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain1tx3value" type="text" value="15.00" onkeyup="updateChain(2, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain1tx3from" type="text" value="Anders" onkeyup="updateChain(2, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain1tx3to" type="text" value="Madison" onkeyup="updateChain(2, 1);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block2chain1previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block2chain1previous" type="text" value="0000438d7625b86a6f366545b1929975a0d3ff1f8847e56cc587cadddb0ab781"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block2chain1hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block2chain1hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block2chain1mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block3chain1well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block3chain1number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block3chain1number" type="number" value="3" onchange="updateChain(3, 1);" onkeyup="updateChain(3, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block3chain1nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block3chain1nonce" type="text" value="146" onkeyup="updateChain(3, 1);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain1coinbasevalue" type="text" value="100.00" onkeyup="updateChain(3, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain1coinbaseto" type="text" value="Anders" onkeyup="updateChain(3, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain1tx0value" type="text" value="10.00" onkeyup="updateChain(3, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain1tx0from" type="text" value="Emily" onkeyup="updateChain(3, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain1tx0to" type="text" value="Jackson" onkeyup="updateChain(3, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain1tx1value" type="text" value="5.00" onkeyup="updateChain(3, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain1tx1from" type="text" value="Madison" onkeyup="updateChain(3, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain1tx1to" type="text" value="Jackson" onkeyup="updateChain(3, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain1tx2value" type="text" value="20.00" onkeyup="updateChain(3, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain1tx2from" type="text" value="Lucas" onkeyup="updateChain(3, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain1tx2to" type="text" value="Grace" onkeyup="updateChain(3, 1);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block3chain1previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block3chain1previous" type="text" value="0000baeab68c2a60f9a6fa56355438d97c672a15494fcea617064d9314f9ff63"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block3chain1hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block3chain1hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block3chain1mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block4chain1well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block4chain1number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block4chain1number" type="number" value="4" onchange="updateChain(4, 1);" onkeyup="updateChain(4, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block4chain1nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block4chain1nonce" type="text" value="18292" onkeyup="updateChain(4, 1);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain1coinbasevalue" type="text" value="100.00" onkeyup="updateChain(4, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain1coinbaseto" type="text" value="Anders" onkeyup="updateChain(4, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain1tx0value" type="text" value="15.00" onkeyup="updateChain(4, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain1tx0from" type="text" value="Jackson" onkeyup="updateChain(4, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain1tx0to" type="text" value="Ryan" onkeyup="updateChain(4, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain1tx1value" type="text" value="5.00" onkeyup="updateChain(4, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain1tx1from" type="text" value="Emily" onkeyup="updateChain(4, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain1tx1to" type="text" value="Madison" onkeyup="updateChain(4, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain1tx2value" type="text" value="8.00" onkeyup="updateChain(4, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain1tx2from" type="text" value="Sophia" onkeyup="updateChain(4, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain1tx2to" type="text" value="Jackson" onkeyup="updateChain(4, 1);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block4chain1previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block4chain1previous" type="text" value="0000df1d632b734f5a5fc126a0f0e8894fb4c8314ba7086b62980559af6771b9"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block4chain1hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block4chain1hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block4chain1mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block5chain1well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block5chain1number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block5chain1number" type="number" value="5" onchange="updateChain(5, 1);" onkeyup="updateChain(5, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block5chain1nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block5chain1nonce" type="text" value="108899" onkeyup="updateChain(5, 1);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain1coinbasevalue" type="text" value="100.00" onkeyup="updateChain(5, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain1coinbaseto" type="text" value="Sophia" onkeyup="updateChain(5, 1);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain1tx0value" type="text" value="2.00" onkeyup="updateChain(5, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain1tx0from" type="text" value="Jackson" onkeyup="updateChain(5, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain1tx0to" type="text" value="Alexander" onkeyup="updateChain(5, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain1tx1value" type="text" value="6.00" onkeyup="updateChain(5, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain1tx1from" type="text" value="Ryan" onkeyup="updateChain(5, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain1tx1to" type="text" value="Carter" onkeyup="updateChain(5, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain1tx2value" type="text" value="4.00" onkeyup="updateChain(5, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain1tx2from" type="text" value="Ryan" onkeyup="updateChain(5, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain1tx2to" type="text" value="Riley" onkeyup="updateChain(5, 1);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain1tx3value" type="text" value="9.95" onkeyup="updateChain(5, 1);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain1tx3from" type="text" value="Grace" onkeyup="updateChain(5, 1);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain1tx3to" type="text" value="Katherine" onkeyup="updateChain(5, 1);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block5chain1previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block5chain1previous" type="text" value="0000c694336f88129f3685bd3ba5d67c445dfd8d18bd22f5d87301dd560eb30e"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block5chain1hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block5chain1hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block5chain1mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div></div><div class="row row-horizon"><div class="col-xs-7"><div class="well" id="block1chain2well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block1chain2number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block1chain2number" type="number" value="1" onchange="updateChain(1, 2);" onkeyup="updateChain(1, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block1chain2nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block1chain2nonce" type="text" value="16651" onkeyup="updateChain(1, 2);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block1chain2coinbasevalue" type="text" value="100.00" onkeyup="updateChain(1, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block1chain2coinbaseto" type="text" value="Anders" onkeyup="updateChain(1, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block1chain2previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block1chain2previous" type="text" value="0000000000000000000000000000000000000000000000000000000000000000"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block1chain2hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block1chain2hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block1chain2mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block2chain2well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block2chain2number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block2chain2number" type="number" value="2" onchange="updateChain(2, 2);" onkeyup="updateChain(2, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block2chain2nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block2chain2nonce" type="text" value="215458" onkeyup="updateChain(2, 2);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain2coinbasevalue" type="text" value="100.00" onkeyup="updateChain(2, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain2coinbaseto" type="text" value="Anders" onkeyup="updateChain(2, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain2tx0value" type="text" value="10.00" onkeyup="updateChain(2, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain2tx0from" type="text" value="Anders" onkeyup="updateChain(2, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain2tx0to" type="text" value="Sophia" onkeyup="updateChain(2, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain2tx1value" type="text" value="20.00" onkeyup="updateChain(2, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain2tx1from" type="text" value="Anders" onkeyup="updateChain(2, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain2tx1to" type="text" value="Lucas" onkeyup="updateChain(2, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain2tx2value" type="text" value="15.00" onkeyup="updateChain(2, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain2tx2from" type="text" value="Anders" onkeyup="updateChain(2, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain2tx2to" type="text" value="Emily" onkeyup="updateChain(2, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain2tx3value" type="text" value="15.00" onkeyup="updateChain(2, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain2tx3from" type="text" value="Anders" onkeyup="updateChain(2, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain2tx3to" type="text" value="Madison" onkeyup="updateChain(2, 2);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block2chain2previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block2chain2previous" type="text" value="0000438d7625b86a6f366545b1929975a0d3ff1f8847e56cc587cadddb0ab781"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block2chain2hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block2chain2hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block2chain2mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block3chain2well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block3chain2number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block3chain2number" type="number" value="3" onchange="updateChain(3, 2);" onkeyup="updateChain(3, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block3chain2nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block3chain2nonce" type="text" value="146" onkeyup="updateChain(3, 2);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain2coinbasevalue" type="text" value="100.00" onkeyup="updateChain(3, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain2coinbaseto" type="text" value="Anders" onkeyup="updateChain(3, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain2tx0value" type="text" value="10.00" onkeyup="updateChain(3, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain2tx0from" type="text" value="Emily" onkeyup="updateChain(3, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain2tx0to" type="text" value="Jackson" onkeyup="updateChain(3, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain2tx1value" type="text" value="5.00" onkeyup="updateChain(3, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain2tx1from" type="text" value="Madison" onkeyup="updateChain(3, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain2tx1to" type="text" value="Jackson" onkeyup="updateChain(3, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain2tx2value" type="text" value="20.00" onkeyup="updateChain(3, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain2tx2from" type="text" value="Lucas" onkeyup="updateChain(3, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain2tx2to" type="text" value="Grace" onkeyup="updateChain(3, 2);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block3chain2previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block3chain2previous" type="text" value="0000baeab68c2a60f9a6fa56355438d97c672a15494fcea617064d9314f9ff63"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block3chain2hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block3chain2hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block3chain2mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block4chain2well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block4chain2number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block4chain2number" type="number" value="4" onchange="updateChain(4, 2);" onkeyup="updateChain(4, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block4chain2nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block4chain2nonce" type="text" value="18292" onkeyup="updateChain(4, 2);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain2coinbasevalue" type="text" value="100.00" onkeyup="updateChain(4, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain2coinbaseto" type="text" value="Anders" onkeyup="updateChain(4, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain2tx0value" type="text" value="15.00" onkeyup="updateChain(4, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain2tx0from" type="text" value="Jackson" onkeyup="updateChain(4, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain2tx0to" type="text" value="Ryan" onkeyup="updateChain(4, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain2tx1value" type="text" value="5.00" onkeyup="updateChain(4, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain2tx1from" type="text" value="Emily" onkeyup="updateChain(4, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain2tx1to" type="text" value="Madison" onkeyup="updateChain(4, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain2tx2value" type="text" value="8.00" onkeyup="updateChain(4, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain2tx2from" type="text" value="Sophia" onkeyup="updateChain(4, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain2tx2to" type="text" value="Jackson" onkeyup="updateChain(4, 2);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block4chain2previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block4chain2previous" type="text" value="0000df1d632b734f5a5fc126a0f0e8894fb4c8314ba7086b62980559af6771b9"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block4chain2hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block4chain2hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block4chain2mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block5chain2well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block5chain2number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block5chain2number" type="number" value="5" onchange="updateChain(5, 2);" onkeyup="updateChain(5, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block5chain2nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block5chain2nonce" type="text" value="108899" onkeyup="updateChain(5, 2);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain2coinbasevalue" type="text" value="100.00" onkeyup="updateChain(5, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain2coinbaseto" type="text" value="Sophia" onkeyup="updateChain(5, 2);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain2tx0value" type="text" value="2.00" onkeyup="updateChain(5, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain2tx0from" type="text" value="Jackson" onkeyup="updateChain(5, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain2tx0to" type="text" value="Alexander" onkeyup="updateChain(5, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain2tx1value" type="text" value="6.00" onkeyup="updateChain(5, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain2tx1from" type="text" value="Ryan" onkeyup="updateChain(5, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain2tx1to" type="text" value="Carter" onkeyup="updateChain(5, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain2tx2value" type="text" value="4.00" onkeyup="updateChain(5, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain2tx2from" type="text" value="Ryan" onkeyup="updateChain(5, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain2tx2to" type="text" value="Riley" onkeyup="updateChain(5, 2);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain2tx3value" type="text" value="9.95" onkeyup="updateChain(5, 2);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain2tx3from" type="text" value="Grace" onkeyup="updateChain(5, 2);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain2tx3to" type="text" value="Katherine" onkeyup="updateChain(5, 2);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block5chain2previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block5chain2previous" type="text" value="0000c694336f88129f3685bd3ba5d67c445dfd8d18bd22f5d87301dd560eb30e"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block5chain2hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block5chain2hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block5chain2mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div></div><div class="row row-horizon"><div class="col-xs-7"><div class="well" id="block1chain3well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block1chain3number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block1chain3number" type="number" value="1" onchange="updateChain(1, 3);" onkeyup="updateChain(1, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block1chain3nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block1chain3nonce" type="text" value="16651" onkeyup="updateChain(1, 3);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block1chain3coinbasevalue" type="text" value="100.00" onkeyup="updateChain(1, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block1chain3coinbaseto" type="text" value="Anders" onkeyup="updateChain(1, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block1chain3previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block1chain3previous" type="text" value="0000000000000000000000000000000000000000000000000000000000000000"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block1chain3hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block1chain3hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block1chain3mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block2chain3well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block2chain3number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block2chain3number" type="number" value="2" onchange="updateChain(2, 3);" onkeyup="updateChain(2, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block2chain3nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block2chain3nonce" type="text" value="215458" onkeyup="updateChain(2, 3);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain3coinbasevalue" type="text" value="100.00" onkeyup="updateChain(2, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain3coinbaseto" type="text" value="Anders" onkeyup="updateChain(2, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain3tx0value" type="text" value="10.00" onkeyup="updateChain(2, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain3tx0from" type="text" value="Anders" onkeyup="updateChain(2, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain3tx0to" type="text" value="Sophia" onkeyup="updateChain(2, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain3tx1value" type="text" value="20.00" onkeyup="updateChain(2, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain3tx1from" type="text" value="Anders" onkeyup="updateChain(2, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain3tx1to" type="text" value="Lucas" onkeyup="updateChain(2, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain3tx2value" type="text" value="15.00" onkeyup="updateChain(2, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain3tx2from" type="text" value="Anders" onkeyup="updateChain(2, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain3tx2to" type="text" value="Emily" onkeyup="updateChain(2, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block2chain3tx3value" type="text" value="15.00" onkeyup="updateChain(2, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block2chain3tx3from" type="text" value="Anders" onkeyup="updateChain(2, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block2chain3tx3to" type="text" value="Madison" onkeyup="updateChain(2, 3);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block2chain3previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block2chain3previous" type="text" value="0000438d7625b86a6f366545b1929975a0d3ff1f8847e56cc587cadddb0ab781"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block2chain3hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block2chain3hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block2chain3mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block3chain3well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block3chain3number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block3chain3number" type="number" value="3" onchange="updateChain(3, 3);" onkeyup="updateChain(3, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block3chain3nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block3chain3nonce" type="text" value="146" onkeyup="updateChain(3, 3);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain3coinbasevalue" type="text" value="100.00" onkeyup="updateChain(3, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain3coinbaseto" type="text" value="Anders" onkeyup="updateChain(3, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain3tx0value" type="text" value="10.00" onkeyup="updateChain(3, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain3tx0from" type="text" value="Emily" onkeyup="updateChain(3, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain3tx0to" type="text" value="Jackson" onkeyup="updateChain(3, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain3tx1value" type="text" value="5.00" onkeyup="updateChain(3, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain3tx1from" type="text" value="Madison" onkeyup="updateChain(3, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain3tx1to" type="text" value="Jackson" onkeyup="updateChain(3, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block3chain3tx2value" type="text" value="20.00" onkeyup="updateChain(3, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block3chain3tx2from" type="text" value="Lucas" onkeyup="updateChain(3, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block3chain3tx2to" type="text" value="Grace" onkeyup="updateChain(3, 3);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block3chain3previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block3chain3previous" type="text" value="0000baeab68c2a60f9a6fa56355438d97c672a15494fcea617064d9314f9ff63"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block3chain3hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block3chain3hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block3chain3mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block4chain3well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block4chain3number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block4chain3number" type="number" value="4" onchange="updateChain(4, 3);" onkeyup="updateChain(4, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block4chain3nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block4chain3nonce" type="text" value="18292" onkeyup="updateChain(4, 3);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain3coinbasevalue" type="text" value="100.00" onkeyup="updateChain(4, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain3coinbaseto" type="text" value="Anders" onkeyup="updateChain(4, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain3tx0value" type="text" value="15.00" onkeyup="updateChain(4, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain3tx0from" type="text" value="Jackson" onkeyup="updateChain(4, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain3tx0to" type="text" value="Ryan" onkeyup="updateChain(4, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain3tx1value" type="text" value="5.00" onkeyup="updateChain(4, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain3tx1from" type="text" value="Emily" onkeyup="updateChain(4, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain3tx1to" type="text" value="Madison" onkeyup="updateChain(4, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block4chain3tx2value" type="text" value="8.00" onkeyup="updateChain(4, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block4chain3tx2from" type="text" value="Sophia" onkeyup="updateChain(4, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block4chain3tx2to" type="text" value="Jackson" onkeyup="updateChain(4, 3);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block4chain3previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block4chain3previous" type="text" value="0000df1d632b734f5a5fc126a0f0e8894fb4c8314ba7086b62980559af6771b9"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block4chain3hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block4chain3hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block4chain3mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div><div class="col-xs-7"><div class="well" id="block5chain3well"><form class="form-horizontal"><div class="form-group"><label class="col-sm-2 control-label" for="block5chain3number">区块:</label><div class="col-sm-10"><div class="input-group"><span class="input-group-addon">#</span><input class="form-control" id="block5chain3number" type="number" value="5" onchange="updateChain(5, 3);" onkeyup="updateChain(5, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label" for="block5chain3nonce">随机数:</label><div class="col-sm-10"><input class="form-control" id="block5chain3nonce" type="text" value="108899" onkeyup="updateChain(5, 3);"></div></div><div class="form-group"><label class="col-sm-2 control-label">币基:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain3coinbasevalue" type="text" value="100.00" onkeyup="updateChain(5, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain3coinbaseto" type="text" value="Sophia" onkeyup="updateChain(5, 3);"></div></div></div><div class="form-group"><label class="col-sm-2 control-label">Tx:</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain3tx0value" type="text" value="2.00" onkeyup="updateChain(5, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain3tx0from" type="text" value="Jackson" onkeyup="updateChain(5, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain3tx0to" type="text" value="Alexander" onkeyup="updateChain(5, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain3tx1value" type="text" value="6.00" onkeyup="updateChain(5, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain3tx1from" type="text" value="Ryan" onkeyup="updateChain(5, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain3tx1to" type="text" value="Carter" onkeyup="updateChain(5, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain3tx2value" type="text" value="4.00" onkeyup="updateChain(5, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain3tx2from" type="text" value="Ryan" onkeyup="updateChain(5, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain3tx2to" type="text" value="Riley" onkeyup="updateChain(5, 3);"></div><div class="input-group"><div class="input-group-addon"></div><input class="form-control" id="block5chain3tx3value" type="text" value="9.95" onkeyup="updateChain(5, 3);"><div class="input-group-addon">从:</div><input class="form-control" id="block5chain3tx3from" type="text" value="Grace" onkeyup="updateChain(5, 3);"><div class="input-group-addon">-&gt;</div><input class="form-control" id="block5chain3tx3to" type="text" value="Katherine" onkeyup="updateChain(5, 3);"></div></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block5chain3previous">前指针:</label><div class="col-sm-10"><input class="form-control" id="block5chain3previous" type="text" value="0000c694336f88129f3685bd3ba5d67c445dfd8d18bd22f5d87301dd560eb30e"></div></div><div class="form-group" id="state"><label class="col-sm-2 control-label" for="block5chain3hash">哈希:</label><div class="col-sm-10"><input class="form-control" id="block5chain3hash" type="text" disabled></div></div><div class="form-group"><div class="col-sm-2"><i class="icon-spinner icon-spin icon-large"></i></div><div class="col-sm-10"><button class="btn btn-primary ladda-button" id="block5chain3mineButton" data-style="expand-right"><span class="ladda-label">挖矿</span></button></div></div></form></div></div></div></div><script>$(function() {
setup(1, 1);
setup(2, 1);
setup(3, 1);
setup(4, 1);
setup(5, 1);
setup(1, 2);
setup(2, 2);
setup(3, 2);
setup(4, 2);
setup(5, 2);
setup(1, 3);
setup(2, 3);
setup(3, 3);
setup(4, 3);
setup(5, 3);
});
function getText(block, chain) {
var s = $('#block'+block+'chain'+chain+'number').val() +
$('#block'+block+'chain'+chain+'nonce').val() +
$('#block'+block+'chain'+chain+'coinbasevalue').val() +
$('#block'+block+'chain'+chain+'coinbaseto').val();
for (var x=0; $('#block'+block+'chain'+chain+'tx'+x+'value').length > 0; x++) {
s = s + $('#block'+block+'chain'+chain+'tx'+x+'value').val() +
$('#block'+block+'chain'+chain+'tx'+x+'from').val() +
$('#block'+block+'chain'+chain+'tx'+x+'to').val();
}
s = s + $('#block'+block+'chain'+chain+'previous').val();
return s;
}
function setup(block, chain) {
updateHash(block, chain);
$('#block'+block+'chain'+chain+'mineButton').click(function(e) {
e.preventDefault();
var l = Ladda.create(this);
l.start();
setTimeout(function() {
mine(block, chain, true);
l.stop();
}, 250); // give UI time to update
});
}</script></body></html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化