Skip to content

Commit

Permalink
feat(config): add event config
Browse files Browse the repository at this point in the history
**What does this PR do?**
modify mongodb event service configuration

**Why are these changes required?**
update plugin configuration

**This PR has been tested by:**
- Unit Tests
- Manual Testing

**Follow up**

**Extra details**
  • Loading branch information
317787106 authored Sep 7, 2023
1 parent 240ed17 commit 4ab85be
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions main_net_config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -669,18 +669,25 @@ event.subscribe = {

path = "" // absolute path of plugin
server = "" // target server address to receive event triggers
dbconfig = "" // dbname|username|password
contractParse = true,
// dbname|username|password, if you want to create indexes for collections when the collections
// are not exist, you can add version and set it to 2, as dbname|username|password|version
// if you use version 2 and one collection not exists, it will create index automaticaly;
// if you use version 2 and one collection exists, it will not create index, you must create index manually;
dbconfig = ""
contractParse = true
topics = [
{
triggerName = "block" // block trigger, the value can't be modified
enable = false
topic = "block" // plugin topic, the value could be modified
solidified = false // if set true, just need solidified block, default is false
},
{
triggerName = "transaction"
enable = false
topic = "transaction"
solidified = false
ethCompatible = false // if set true, add transactionIndex, cumulativeEnergyUsed, preCumulativeLogCount, logList, energyUnitPrice, default is false
},
{
triggerName = "contractevent"
Expand All @@ -691,9 +698,10 @@ event.subscribe = {
triggerName = "contractlog"
enable = false
topic = "contractlog"
redundancy = false // if set true, contractevent will also be regarded as contractlog
},
{
triggerName = "solidity" // solidity block event trigger, the value can't be modified
triggerName = "solidity" // solidity block trigger(just include solidity block number and timestamp), the value can't be modified
enable = true // the default value is true
topic = "solidity"
},
Expand All @@ -706,6 +714,7 @@ event.subscribe = {
triggerName = "soliditylog"
enable = false
topic = "soliditylog"
redundancy = false // if set true, solidityevent will also be regarded as soliditylog
}
]

Expand Down

0 comments on commit 4ab85be

Please sign in to comment.