rpc: fix getblocktemplate.

This commit is contained in:
Christopher Jeffrey 2016-12-12 05:11:19 -08:00
parent eef7ffbe6e
commit df4b07304b
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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 = [];