mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 06:58:59 -07:00
Adding support for a genesis DB.
This commit is contained in:
parent
d5fcd11592
commit
7a9225ce86
7 changed files with 35 additions and 4 deletions
|
@ -38,8 +38,8 @@ func NewGagentDb() *GagentDb {
|
|||
/*
|
||||
* Load the database from disk
|
||||
*/
|
||||
func (db *GagentDb) LoadHCL() error {
|
||||
err := hclsimple.DecodeFile("chaindb.hcl", nil, db)
|
||||
func (db *GagentDb) LoadHCL(ChainDBPath string) error {
|
||||
err := hclsimple.DecodeFile(ChainDBPath, nil, db)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue