mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
core :use batch to write chain config (#1760)
This commit is contained in:
parent
1eec428928
commit
5b873ea522
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ func (g *Genesis) Commit(db ethdb.Database) (*types.Block, error) {
|
||||||
rawdb.WriteHeadBlockHash(batch, block.Hash())
|
rawdb.WriteHeadBlockHash(batch, block.Hash())
|
||||||
rawdb.WriteHeadFastBlockHash(batch, block.Hash())
|
rawdb.WriteHeadFastBlockHash(batch, block.Hash())
|
||||||
rawdb.WriteHeadHeaderHash(batch, block.Hash())
|
rawdb.WriteHeadHeaderHash(batch, block.Hash())
|
||||||
rawdb.WriteChainConfig(db, block.Hash(), config)
|
rawdb.WriteChainConfig(batch, block.Hash(), config)
|
||||||
return block, batch.Write()
|
return block, batch.Write()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue