File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ module.exports = function (
4242 } ) ;
4343 } else if ( block_num > currentBlockNumber ) {
4444 if (
45- blocks [ currentBlockNumber ] &&
45+ blocks [ currentBlockNumber + 1 ] &&
4646 ! blocks . processing
47- ) processBlock ( blocks [ block_num ] , currentBlockNumber ) . then ( ( ) => {
48- delete blocks [ currentBlockNumber ] ;
49- currentBlockNumber = currentBlockNumber ;
47+ ) processBlock ( blocks [ block_num ] , block_num ) . then ( ( ) => {
48+ delete blocks [ block_num ] ;
49+ currentBlockNumber = block_num ;
5050 blocks . completed = blocks . processing ;
5151 blocks . processing = 0 ;
52- } ) ;
53- else if ( ! blocks [ currentBlockNumber ] ) getBlockNumber ( currentBlockNumber ) ;
52+ } ) ;
53+ else if ( ! blocks [ block_num ] ) getBlockNumber ( block_num ) ;
5454 } else if ( block_num <= currentBlockNumber ) {
5555 var blockNums = Object . keys ( blocks ) ;
5656 for ( var i = 0 ; i < blockNums . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments