all: get rid of error when creating memory database (#16716)
* all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
This commit is contained in:
		
				
					committed by
					
						 Péter Szilágyi
						Péter Szilágyi
					
				
			
			
				
	
			
			
			
						parent
						
							5dbd8b42a9
						
					
				
				
					commit
					7beccb29be
				
			| @@ -53,7 +53,7 @@ func newTestProtocolManager(mode downloader.SyncMode, blocks int, generator func | ||||
| 	var ( | ||||
| 		evmux  = new(event.TypeMux) | ||||
| 		engine = ethash.NewFaker() | ||||
| 		db, _  = ethdb.NewMemDatabase() | ||||
| 		db     = ethdb.NewMemDatabase() | ||||
| 		gspec  = &core.Genesis{ | ||||
| 			Config: params.TestChainConfig, | ||||
| 			Alloc:  core.GenesisAlloc{testBank: {Balance: big.NewInt(1000000)}}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user