Skip to content

Commit 6490d85

Browse files
authored
feat: change the splitstore setting in config and replace returning error with logging error in parsing vm_message (#1246)
* Change the splitstore setting in config * Replace returning error with logging error in parsing vm message
1 parent 64f94e4 commit 6490d85

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

deployment/lily/config.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
EnableSplitstore = true
3535
[Chainstore.Splitstore]
3636
ColdStoreType = "discard"
37-
HotStoreFullGCFrequency = 0
38-
HotStoreMaxSpaceTarget = 0
37+
HotStoreFullGCFrequency = 3
38+
HotStoreMaxSpaceTarget = 650000000000
39+
HotStoreMaxSpaceThreshold = 150000000000
3940

4041
[Fevm]
4142
# EnableEthRPC enables eth_ rpc, and enables storing a mapping of eth transaction hashes to filecoin message Cids.

lens/util/repo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func ParseParams(params []byte, method abi.MethodNum, actCode cid.Cid) (_ string
110110

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

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

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

0 commit comments

Comments
 (0)