-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: integrating oracle #2
base: main
Are you sure you want to change the base?
Changes from 1 commit
aedc45f
a629152
a5ec437
ebb4045
7852308
e0b06dc
be740cb
4c8753c
2dbff67
86e0a94
dc0c6a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ query-gas-limit = "0" | |
pruning = "nothing" | ||
|
||
# These are applied if and only if the pruning strategy is custom. | ||
# pruning-keep-recent = "2" | ||
# pruning-interval = "10" | ||
pruning-keep-recent = "0" | ||
pruning-interval = "0" | ||
|
||
# HaltHeight contains a non-zero block height at which a node will gracefully | ||
# halt and shutdown that can be used to assist upgrades and testing. | ||
|
@@ -99,7 +99,7 @@ enable-hostname-label = false | |
enable-service-label = false | ||
|
||
# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. | ||
prometheus-retention-time = 1000000000000 | ||
prometheus-retention-time = 1000000000000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reconsider Prometheus retention time The Consider reducing this value to a more manageable timeframe, such as 30 days (2592000000) or 90 days (7776000000), depending on your specific needs for historical data retention. |
||
|
||
# GlobalLabels defines a global set of name/value label tuples applied to all | ||
# metrics emitted using the wrapper functions defined in telemetry package. | ||
|
@@ -133,7 +133,7 @@ enable = true | |
swagger = false | ||
|
||
# Address defines the API server to listen on. | ||
address = "tcp://0.0.0.0:1317" | ||
address = "tcp://localhost:1317" | ||
|
||
# MaxOpenConnections defines the number of maximum open connections. | ||
max-open-connections = 1000 | ||
|
@@ -191,7 +191,7 @@ enable = true | |
|
||
# snapshot-interval specifies the block interval at which local state sync snapshots are | ||
# taken (0 to disable). | ||
snapshot-interval = 2000 | ||
snapshot-interval = 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reconsider disabling state sync snapshots Setting
Consider setting a non-zero value (e.g., 1000 or 2000) to enable state sync snapshots, which can significantly reduce the time for new nodes to join the network. If disabling snapshots is intentional, please ensure this aligns with your network's operational requirements. |
||
|
||
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). | ||
snapshot-keep-recent = 2 | ||
|
@@ -262,7 +262,7 @@ enable = true | |
address = "0.0.0.0:8545" | ||
|
||
# Address defines the EVM WebSocket server address to bind to. | ||
ws-address = "0.0.0.0:8546" | ||
ws-address = "127.0.0.1:8546" | ||
|
||
# API defines a list of JSON-RPC namespaces that should be enabled | ||
# Example: "eth,txpool,personal,net,debug,web3" | ||
|
@@ -331,3 +331,11 @@ key-path = "" | |
[aspect] | ||
apply-pool-size = 0 | ||
query-pool-size = 0 | ||
|
||
[oracle] | ||
enabled = "true" | ||
oracle_address = "localhost:8080" | ||
client_timeout = "250ms" | ||
metrics_enabled = "true" | ||
interval = "1500ms" | ||
price_ttl = "10s" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"app_name": "artela-rollkitd", | ||
"app_version": "", | ||
"genesis_time": "2024-08-19T02:50:07.087678Z", | ||
"genesis_time": "2024-10-11T12:58:25.410546222Z", | ||
"chain_id": "artroll_11820-1", | ||
"initial_height": 1, | ||
"app_hash": null, | ||
|
@@ -29,31 +29,10 @@ | |
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art1dq4gtx924wn6k034qfxel0klacty2gd7cktd2j", | ||
"address": "art15cagjnsrq64j5h9p0gx6v8mnch82tu5q4e6v0g", | ||
"pub_key": null, | ||
"account_number": "1", | ||
"sequence": "0" | ||
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art1a2flg0np0fcrjuygyzgzuf6xc3mxct8d9rukzd", | ||
"pub_key": null, | ||
"account_number": "2", | ||
"sequence": "0" | ||
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art1z5jgh3an6hrl7ghdcdftpdztksjxl0gpjsg03v", | ||
"pub_key": null, | ||
"account_number": "3", | ||
"sequence": "0" | ||
}, | ||
{ | ||
"@type": "/cosmos.auth.v1beta1.BaseAccount", | ||
"address": "art12uhkvq0axk452ctlvn0q55zgnymq6clml5064g", | ||
"pub_key": null, | ||
"account_number": "4", | ||
"sequence": "0" | ||
} | ||
] | ||
}, | ||
|
@@ -71,34 +50,7 @@ | |
"coins": [] | ||
}, | ||
{ | ||
"address": "art1z5jgh3an6hrl7ghdcdftpdztksjxl0gpjsg03v", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
"amount": "100000000000000000000000000" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "art12uhkvq0axk452ctlvn0q55zgnymq6clml5064g", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
"amount": "100000000000000000000000000" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "art1dq4gtx924wn6k034qfxel0klacty2gd7cktd2j", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
"amount": "100000000000000000000000000" | ||
} | ||
] | ||
}, | ||
{ | ||
"address": "art1a2flg0np0fcrjuygyzgzuf6xc3mxct8d9rukzd", | ||
"address": "art15cagjnsrq64j5h9p0gx6v8mnch82tu5q4e6v0g", | ||
"coins": [ | ||
{ | ||
"denom": "aart", | ||
|
@@ -177,7 +129,7 @@ | |
"shanghai_block": "0", | ||
"cancun_block": "0" | ||
}, | ||
"allow_unprotected_txs": true | ||
"allow_unprotected_txs": false | ||
}, | ||
"accounts": [ | ||
{ | ||
|
@@ -230,18 +182,18 @@ | |
}, | ||
"min_self_delegation": "1", | ||
"delegator_address": "", | ||
"validator_address": "artvaloper1dq4gtx924wn6k034qfxel0klacty2gd7k6rtfd", | ||
"validator_address": "artvaloper15cagjnsrq64j5h9p0gx6v8mnch82tu5qm4j2vh", | ||
"pubkey": { | ||
"@type": "/cosmos.crypto.ed25519.PubKey", | ||
"key": "+SrfTnc7KUBAvp1s2LdutuDBc6kr6+nBCXtzPG7t4VM=" | ||
"key": "DLcXY6acqcTnyhnvfycZ4sgSd6b1LhCLPTUux6nl4J4=" | ||
}, | ||
"value": { | ||
"denom": "aart", | ||
"amount": "1000000000000000000000" | ||
} | ||
} | ||
], | ||
"memo": "[email protected]:26656", | ||
"memo": "[email protected]:26656", | ||
"timeout_height": "0", | ||
"extension_options": [], | ||
"non_critical_extension_options": [] | ||
|
@@ -251,7 +203,7 @@ | |
{ | ||
"public_key": { | ||
"@type": "/artela.crypto.ethsecp256k1.PubKey", | ||
"key": "Awf7YAGa6sZwRCo/iEUoCubZd1dPVYgf5VPGDmjPmNzk" | ||
"key": "A56ZbPnY8Mz3Rbx0l7G+8+S7N/+/xNncR+/hCosrVcuZ" | ||
}, | ||
"mode_info": { | ||
"single": { | ||
|
@@ -275,7 +227,7 @@ | |
"tip": null | ||
}, | ||
"signatures": [ | ||
"SjrsqJaKSLJj/Q6zaV4E5h86YYtfkLpb+fCmCfxyz6hgGKRJ7guAC4fBTi0YrbU+wJJZeNZF3akMP+I7k/Pp8AE=" | ||
"ROOIMIQmDcfACX13n3cu49HWA9NQKMFAaiDgyyI7BC9QDAdJhhlPWSokM+8x9zR2KSoWIsxEFmWmS6RTBWB/bgA=" | ||
] | ||
} | ||
] | ||
|
@@ -459,10 +411,10 @@ | |
"consensus": { | ||
"validators": [ | ||
{ | ||
"address": "CF9A8D94CC8941E4963EA1D441C4BD801C3ADE80", | ||
"address": "3263B152994E439332C7972060DC808637FCC04F", | ||
"pub_key": { | ||
"type": "tendermint/PubKeyEd25519", | ||
"value": "+SrfTnc7KUBAvp1s2LdutuDBc6kr6+nBCXtzPG7t4VM=" | ||
"value": "DLcXY6acqcTnyhnvfycZ4sgSd6b1LhCLPTUux6nl4J4=" | ||
}, | ||
"power": "1000000000000000", | ||
"name": "Rollkit Sequencer" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"localtestnet","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"","validator_address":"artvaloper15cagjnsrq64j5h9p0gx6v8mnch82tu5qm4j2vh","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"DLcXY6acqcTnyhnvfycZ4sgSd6b1LhCLPTUux6nl4J4="},"value":{"denom":"aart","amount":"1000000000000000000000"}}],"memo":"[email protected]:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/artela.crypto.ethsecp256k1.PubKey","key":"A56ZbPnY8Mz3Rbx0l7G+8+S7N/+/xNncR+/hCosrVcuZ"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[{"denom":"aart","amount":"4000000000000000"}],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["ROOIMIQmDcfACX13n3cu49HWA9NQKMFAaiDgyyI7BC9QDAdJhhlPWSokM+8x9zR2KSoWIsxEFmWmS6RTBWB/bgA="]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Address the empty The Please update the JSON object to include the correct "delegator_address": "art1..." Replace 🧰 Tools🪛 Gitleaks
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"/TpLlf6Fl3NxKpur44PVcJvKMs8Qh3dfZaTXeMtOo8sgVj3f4bPC//uYQyqqpKlffUX3t8oDo3AMvIIjds3SdA=="}} | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"xDZ/luTKfQ1z4ybsLM2E/8dEx1Pqm3Q+r7Ashi2MHIOWpKtLgMi/feOhrJk6w6Gl0kaCDIt37/FSYLlVqD2Gkw=="}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"address": "CF9A8D94CC8941E4963EA1D441C4BD801C3ADE80", | ||
"address": "3263B152994E439332C7972060DC808637FCC04F", | ||
"pub_key": { | ||
"type": "tendermint/PubKeyEd25519", | ||
"value": "+SrfTnc7KUBAvp1s2LdutuDBc6kr6+nBCXtzPG7t4VM=" | ||
"value": "DLcXY6acqcTnyhnvfycZ4sgSd6b1LhCLPTUux6nl4J4=" | ||
}, | ||
"priv_key": { | ||
"type": "tendermint/PrivKeyEd25519", | ||
"value": "yZyMb4PieN4JlHekxUcdy+UTtHMySUar40Wk+JQw9k75Kt9OdzspQEC+nWzYt2624MFzqSvr6cEJe3M8bu3hUw==" | ||
"value": "i/jcH6ADX564vG+4UCtAmZPCuOFfGwn+i7RmaBsJufAMtxdjppypxOfKGe9/JxniyBJ3pvUuEIs9NS7HqeXgng==" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MANIFEST-000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=============== Oct 15, 2024 (UTC) =============== | ||
16:35:54.242286 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed | ||
16:35:54.260593 db@open opening | ||
16:35:54.260913 version@stat F·[] S·0B[] Sc·[] | ||
16:35:54.266628 db@janitor F·2 G·0 | ||
16:35:54.266658 db@open done T·6.017062ms |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MANIFEST-000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=============== Oct 15, 2024 (UTC) =============== | ||
16:35:54.270126 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed | ||
16:35:54.284041 db@open opening | ||
16:35:54.284453 version@stat F·[] S·0B[] Sc·[] | ||
16:35:54.291261 db@janitor F·2 G·0 | ||
16:35:54.291277 db@open done T·7.222854ms |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0xMC0xMSAxMjo1ODoyNS4yNjI2NzY1MTkgKzAwMDAgVVRDIG09KzAuMTMzNzMyNTY3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYmxENUU4eW44UXBveFZ6VCJ9.-ocud3CiskV3Qeklub2h6G75-8zgjptHURVtwaD_9JjUXoikVLysJg.QrKxsYN5pIBjmNro.U73Yb0lpp4ZYwuleijzBPUGBiImhIdHK2JMou_FCmYZ-Sc0XJ5_V21JyJwqtUY5Z0xN6hXWLNrjv09px_NAe4jtSzOMRdaw5Laj_JXTcV2gANV9iddW-JtuQ6Nay_-8Nd4NI-AwtOAMXEpvf9ZZLE7SS3lKgcjA7aUq-dqHa2Q2Afx5jXXQYD638GKSHN72KWdenVyXacI7FAJB6tv22YlT7Lcq7GGUhjxB4ITwuLB3Bkr-il8Q.6FGPsZQGAc_0t2PUv8AJtQ |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyNC0wOC0xOSAxMDo1MDowNi44Mjg4OTQgKzA4MDAgQ1NUIG09KzAuMDUxNjMyODc2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiaEJZVFJzRU8zQmpxdFZTbiJ9.VP0GUlP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IJhKBrkc3P--gKNlD67Cz8w48f2hNvxWP2OY4uhhBnda5DkmbEy72Vr_qCW8MPBqW_9eskX8vmuCs98ZxQFiR86XSJXB-0B00nk6GNtpKH_ZW9mgf5VSxqtzztJZunrrr8NjG29m-Vu1EMcsxR3Gbv-BCHCwwqQAm3KUjax6FaOFYtUbOJdxZAXJl36jCDUsgY5lQ.si1-_js6FMcmdUcgjLK5LA |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant pruning configuration
The
pruning-keep-recent
andpruning-interval
settings are only applied whenpruning="custom"
, but currentlypruning="nothing"
is set. These settings are redundant and should be removed or commented out.Additionally, keeping all historical states (
pruning="nothing"
) could lead to significant disk usage over time. Consider if this aligns with your operational requirements.📝 Committable suggestion