rpc: fix getblocktemplate.
This commit is contained in:
parent
eef7ffbe6e
commit
df4b07304b
@ -1551,13 +1551,13 @@ RPC.prototype.__template = co(function* _template(version, coinbase, rules) {
|
||||
var i, j, entry, tx, deps, input, dep, output, raw, rwhash;
|
||||
var template, name, deployment, state;
|
||||
|
||||
for (i = 0; i < block.items.length; i++) {
|
||||
entry = block.items[i];
|
||||
for (i = 0; i < attempt.items.length; i++) {
|
||||
entry = attempt.items[i];
|
||||
txIndex[entry.hash] = i;
|
||||
}
|
||||
|
||||
for (i = 0; i < block.items.length; i++) {
|
||||
entry = block.items[i];
|
||||
for (i = 0; i < attempt.items.length; i++) {
|
||||
entry = attempt.items[i];
|
||||
tx = entry.tx;
|
||||
deps = [];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user