Skip to content
Browse files

Not every block has version 1. Fixes #50.

  • Loading branch information...
1 parent 2cbb3b9 commit 12527b1b069be70265150b714cfaa76b3d9f2d07 @jdnavarro jdnavarro committed Dec 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/node.js
View
2 lib/node.js
@@ -259,7 +259,7 @@ Node.prototype.handleInv = function (e) {
Node.prototype.handleBlock = function (e) {
var txs = e.message.txs;
var block = this.blockChain.makeBlockObject({
- "version": 1,
+ "version": e.message.version,
"prev_hash": e.message.prev_hash,
"merkle_root": e.message.merkle_root,
"timestamp": e.message.timestamp,

0 comments on commit 12527b1

Please sign in to comment.
Something went wrong with that request. Please try again.