Built-in actor events first draft

This commit is contained in:
Aarsh Shah
2024-03-05 16:16:15 +11:00
committed by Rod Vagg
parent 9aef2ec8b5
commit f007a012af
29 changed files with 810 additions and 115 deletions
+1
View File
@@ -109,6 +109,7 @@ func DefaultFullNode() *FullNode {
Cluster: *DefaultUserRaftConfig(),
Fevm: FevmConfig{
EnableEthRPC: false,
EnableActorEventsAPI: false,
EthTxHashMappingLifetimeDays: 0,
Events: Events{
DisableRealTimeFilterAPI: false,
+6
View File
@@ -455,6 +455,12 @@ rewards. This address should have adequate funds to cover gas fees.`,
Comment: `EnableEthRPC enables eth_ rpc, and enables storing a mapping of eth transaction hashes to filecoin message Cids.
This will also enable the RealTimeFilterAPI and HistoricFilterAPI by default, but they can be disabled by config options above.`,
},
{
Name: "EnableActorEventsAPI",
Type: "bool",
Comment: ``,
},
{
Name: "EthTxHashMappingLifetimeDays",
Type: "int",
+2
View File
@@ -786,6 +786,8 @@ type FevmConfig struct {
// This will also enable the RealTimeFilterAPI and HistoricFilterAPI by default, but they can be disabled by config options above.
EnableEthRPC bool
EnableActorEventsAPI bool
// EthTxHashMappingLifetimeDays the transaction hash lookup database will delete mappings that have been stored for more than x days
// Set to 0 to keep all mappings
EthTxHashMappingLifetimeDays int