Skip to content

Commit

Permalink
feat: change the splitstore setting in config and replace returning e…
Browse files Browse the repository at this point in the history
…rror with logging error in parsing vm_message (#1246)

* Change the splitstore setting in config

* Replace returning error with logging error in parsing vm message
  • Loading branch information
Terryhung authored Jul 25, 2023
1 parent 64f94e4 commit 6490d85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions deployment/lily/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
EnableSplitstore = true
[Chainstore.Splitstore]
ColdStoreType = "discard"
HotStoreFullGCFrequency = 0
HotStoreMaxSpaceTarget = 0
HotStoreFullGCFrequency = 3
HotStoreMaxSpaceTarget = 650000000000
HotStoreMaxSpaceThreshold = 150000000000

[Fevm]
# EnableEthRPC enables eth_ rpc, and enables storing a mapping of eth transaction hashes to filecoin message Cids.
Expand Down
4 changes: 2 additions & 2 deletions lens/util/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func ParseParams(params []byte, method abi.MethodNum, actCode cid.Cid) (_ string

defer func() {
if r := recover(); r != nil {
err = fmt.Errorf("method %s ActorName %s ParseParams recovered from panic: %+v", m.Name, builtin.ActorNameByCode(actCode), r)
log.Errorf("method %s ActorName %s ParseParams recovered from panic: %+v", m.Name, builtin.ActorNameByCode(actCode), r)
}
}()

Expand Down Expand Up @@ -146,7 +146,7 @@ func ParseReturn(ret []byte, method abi.MethodNum, actCode cid.Cid) (_ string, _

defer func() {
if r := recover(); r != nil {
err = fmt.Errorf("ParseReturn recovered from panic: %+v", r)
log.Errorf("ParseReturn recovered from panic: %+v", r)
}
}()

Expand Down

0 comments on commit 6490d85

Please sign in to comment.