File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ export default class Blockchain implements BlockchainInterface {
312
312
* @hidden
313
313
*/
314
314
_setCanonicalGenesisBlock ( cb : any ) : void {
315
- const genesisBlock = new Block ( Buffer . from ( [ ] ) , { common : this . _common } )
315
+ const genesisBlock = new Block ( undefined , { common : this . _common } )
316
316
genesisBlock . setGenesisParams ( )
317
317
this . _putBlockOrHeader ( genesisBlock , cb , true )
318
318
}
Original file line number Diff line number Diff line change @@ -875,9 +875,9 @@ test('blockchain test', t => {
875
875
const common = new Common ( 'mainnet' )
876
876
const blockchain = new Blockchain ( { common : common , validateBlocks : true , validatePow : false } )
877
877
const blocks = [
878
- new Block ( null , { common : common } ) ,
879
- new Block ( null , { chain : 'mainnet' } ) ,
880
- new Block ( null , { chain : 'ropsten' } ) ,
878
+ new Block ( undefined , { common : common } ) ,
879
+ new Block ( undefined , { chain : 'mainnet' } ) ,
880
+ new Block ( undefined , { chain : 'ropsten' } ) ,
881
881
]
882
882
883
883
blocks [ 0 ] . setGenesisParams ( )
You can’t perform that action at this time.
0 commit comments