fixing tests for blockheader
This commit is contained in:
parent
c06c81e27b
commit
7d09addcaa
|
@ -1,7 +1,9 @@
|
||||||
var Blockheader = require('../lib/blockheader');
|
'use strict';
|
||||||
var BufferWriter = require('../lib/bufferwriter');
|
|
||||||
var BufferReader = require('../lib/bufferreader');
|
|
||||||
var should = require('chai').should();
|
var should = require('chai').should();
|
||||||
|
var bitcore = require('..');
|
||||||
|
var Blockheader = bitcore.Blockheader;
|
||||||
|
var BufferReader = bitcore.BufferReader;
|
||||||
|
|
||||||
describe('Blockheader', function() {
|
describe('Blockheader', function() {
|
||||||
|
|
||||||
|
@ -22,8 +24,8 @@ describe('Blockheader', function() {
|
||||||
bits: bits,
|
bits: bits,
|
||||||
nonce: nonce
|
nonce: nonce
|
||||||
});
|
});
|
||||||
bhhex = '0100000005050505050505050505050505050505050505050505050505050505050505050909090909090909090909090909090909090909090909090909090909090909020000000300000004000000';
|
var bhhex = '0100000005050505050505050505050505050505050505050505050505050505050505050909090909090909090909090909090909090909090909090909090909090909020000000300000004000000';
|
||||||
bhbuf = new Buffer(bhhex, 'hex');
|
var bhbuf = new Buffer(bhhex, 'hex');
|
||||||
|
|
||||||
it('should make a new blockheader', function() {
|
it('should make a new blockheader', function() {
|
||||||
var blockheader = new Blockheader();
|
var blockheader = new Blockheader();
|
||||||
|
|
Loading…
Reference in New Issue