@@ -266,8 +266,8 @@ describe('WalletDB ChainState', function() {
266
266
await progressWithNoTX ( wdb ) ;
267
267
268
268
for ( let i = 0 ; i < blocksPerAction ; i ++ ) {
269
- const blockAndTxs = await progressWithNoTX ( wdb ) ;
270
- removeBlocks . push ( blockAndTxs ) ;
269
+ const blockAndTXs = await progressWithNoTX ( wdb ) ;
270
+ removeBlocks . push ( blockAndTXs ) ;
271
271
}
272
272
273
273
assert . strictEqual ( wdb . state . startHeight , 0 ) ;
@@ -277,11 +277,11 @@ describe('WalletDB ChainState', function() {
277
277
assert . strictEqual ( wdb . state . marked , false ) ;
278
278
279
279
for ( let i = 0 ; i < blocksPerAction ; i ++ ) {
280
- const blockAndTxs = await progressWithTX ( wdb ) ;
281
- removeBlocks . push ( blockAndTxs ) ;
280
+ const blockAndTXs = await progressWithTX ( wdb ) ;
281
+ removeBlocks . push ( blockAndTXs ) ;
282
282
283
283
if ( ! firstBlock )
284
- firstBlock = blockAndTxs . block ;
284
+ firstBlock = blockAndTXs . block ;
285
285
286
286
assert . strictEqual ( wdb . state . startHeight , firstBlock . height ) ;
287
287
assert . bufferEqual ( wdb . state . startHash , firstBlock . hash ) ;
@@ -389,10 +389,10 @@ describe('WalletDB ChainState', function() {
389
389
removeBlocks . push ( await progressWithNoTX ( wdb ) ) ;
390
390
391
391
for ( let i = 0 ; i < blocksPerAction ; i ++ ) {
392
- const blockAndTxs = await progressWithTX ( wdb ) ;
392
+ const blockAndTXs = await progressWithTX ( wdb ) ;
393
393
if ( ! firstBlock )
394
- firstBlock = blockAndTxs . block ;
395
- removeBlocks . push ( blockAndTxs ) ;
394
+ firstBlock = blockAndTXs . block ;
395
+ removeBlocks . push ( blockAndTXs ) ;
396
396
}
397
397
398
398
assert . strictEqual ( wdb . state . startHeight , firstBlock . height ) ;
@@ -416,10 +416,10 @@ describe('WalletDB ChainState', function() {
416
416
firstBlock = null ;
417
417
418
418
for ( let i = 0 ; i < blocksPerAction ; i ++ ) {
419
- const blockAndTxs = await progressWithTX ( wdb ) ;
419
+ const blockAndTXs = await progressWithTX ( wdb ) ;
420
420
421
421
if ( ! firstBlock )
422
- firstBlock = blockAndTxs . block ;
422
+ firstBlock = blockAndTXs . block ;
423
423
424
424
assert . strictEqual ( wdb . state . startHeight , firstBlock . height ) ;
425
425
assert . strictEqual ( wdb . state . startHash , firstBlock . hash ) ;
@@ -445,10 +445,10 @@ describe('WalletDB ChainState', function() {
445
445
await progressWithNoTX ( wdb ) ;
446
446
447
447
for ( let i = 0 ; i < blocksPerAction * 2 ; i ++ ) {
448
- const blockAndTxs = await progressWithTX ( wdb ) ;
448
+ const blockAndTXs = await progressWithTX ( wdb ) ;
449
449
if ( ! firstBlock )
450
- firstBlock = blockAndTxs . block ;
451
- removeBlocks . push ( blockAndTxs ) ;
450
+ firstBlock = blockAndTXs . block ;
451
+ removeBlocks . push ( blockAndTXs ) ;
452
452
}
453
453
454
454
assert . strictEqual ( wdb . state . startHeight , firstBlock . height ) ;
@@ -487,10 +487,10 @@ describe('WalletDB ChainState', function() {
487
487
firstBlock = null ;
488
488
489
489
for ( let i = 0 ; i < blocksPerAction ; i ++ ) {
490
- const blockAndTxs = await progressWithTX ( wdb ) ;
490
+ const blockAndTXs = await progressWithTX ( wdb ) ;
491
491
if ( ! firstBlock )
492
- firstBlock = blockAndTxs . block ;
493
- removeBlocks . push ( blockAndTxs ) ;
492
+ firstBlock = blockAndTXs . block ;
493
+ removeBlocks . push ( blockAndTXs ) ;
494
494
495
495
assert . strictEqual ( wdb . state . startHeight , firstBlock . height ) ;
496
496
assert . strictEqual ( wdb . state . startHash , firstBlock . hash ) ;
0 commit comments