Skip to content

Instantly share code, notes, and snippets.

View EclesioMeloJunior's full-sized avatar
:octocat:
Always ready!

Eclésio Junior EclesioMeloJunior

:octocat:
Always ready!
View GitHub Profile
@EclesioMeloJunior
EclesioMeloJunior / guide.md
Created July 2, 2024 14:40
Development constraints guide. (merging strategy describe, PR size describe, branching strategy, guides for issue description, etc)
  • Authors should be the ones who gonna merge their owns PR's
  • Issues should contains motivations (bugs, improvements) + a plan/suggestion of how to address it, spending time on design/brainstorming strategies to tackle a problem is needed to achieve a solid result
  • Every issue or design issue we should put the spot on the problem and enable the teammates to bring suggestions/opinions/questions to a design call, but is responsibility of the owner of the task to present the main arch and sell it to the team. This ties on the point of spending time on design understanding the task/problem
  • Promoting design calls where a problem can be presented as well discussed with the ones interested. The call should serve as a point of brainstorming for problems, and the OUTCOME SHOULD BE a plan for addressing the discussed problem, so suggestions about splitting the problem, drawing and even bring other code to the discussion are all valid points.
  • PR's pointing to development should be reviewed, however PR's that is no
@EclesioMeloJunior
EclesioMeloJunior / westend-dev0943.log
Created July 17, 2023 19:41
Full gossamer output with wasmer/runtime trace logs
2023-07-17T12:15:56-04:00 INFO 🕸️ initialising node services with global configuration name Westend, id westend_dev and base path /Users/eclesiojunior/.gossamer/westend-dev... pkg=dot
2023-07-17T12:15:56-04:00 INFO created state service with head 0x7f56d9f6097a23ef474b211e33b55a75384f475067082bd23e75b985ccd0b0a7, highest number 0 and genesis hash 0x7f56d9f6097a23ef474b211e33b55a75384f475067082bd23e75b985ccd0b0a7 pkg=state
2023-07-17T12:15:56-04:00 WARN Bootstrap is enabled but no bootstrap nodes are defined pkg=network
2023-07-17T12:15:59-04:00 ERROR failed to get public IP error: Failed to get any result from 14 APIs
Failed to reach https://shtuff.it/myip/short
Failed to reach http://bot.whatismyipaddress.com pkg=network
2023-07-17T12:15:59-04:00 INFO creating runtime with interpreter wasmer... pkg=dot
2023-07-17T12:16:03-04:00 DEBUG key: 0x3a6772616e6470615f617574686f726974696573 ext_storage_get_version_1 pkg=runtime module=go-wasmer
2023-07-17T12:16:03-04:00 DEBUG value: 0x010488dc
@EclesioMeloJunior
EclesioMeloJunior / gist:ebc2895ae9252695dac0e4c17dc890d5
Last active July 17, 2023 19:23
Gossamer runtime wasmer logs
2023-07-17T12:16:06-04:00 DEBUG target=runtime::inclusion-inherent message=[create_inherent_inner] bitfields.len(): 0, backed_candidates.len(): 0, disputes.len() 0 ext_logging_log_version_1 pkg=runtime module=go-wasmer
2023-07-17T12:16:06-04:00 DEBUG key: 0x26aa394eea5630e07c48ae0c9558cef78a42f33323cb5ced3b44dd825fda9fcc ext_storage_get_version_1 pkg=runtime module=go-wasmer
2023-07-17T12:16:06-04:00 DEBUG value: 0x7f56d9f6097a23ef474b211e33b55a75384f475067082bd23e75b985ccd0b0a7 ext_storage_get_version_1 pkg=runtime module=go-wasmer
2023-07-17T12:16:06-04:00 DEBUG data 0x0000000000000000000000000000000000000000000000000000000000000000007bec5f40ea02f4b1fa6a3b1b45a4fe7682ba84277267ff545e3ac5797bd2277e03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400 has hash 0x7f56d9f6097a23ef474b211e33b55a75384f475067082bd23e75b985ccd0b0a7 ext_hashing_blake2_256_version_1 pkg=runtime module=go-wasmer
...
Now we can see that we entered in the `enter_inner` para_inherents pallet method using the cor
===> trying to handle slot: 281600993, duration of: 6.00s, timestamp: 1689605958001
2023-07-17T10:59:18-04:00 WARN target=runtime::inclusion-inherent message=ParentBlockRandomness did not provide entropy ext_logging_log_version_1 pkg=runtime module=go-wasmer
2023-07-17T10:59:18-04:00 WARN target=runtime::inclusion-inherent message=ParentBlockRandomness did not provide entropy ext_logging_log_version_1 pkg=runtime module=go-wasmer
2023-07-17T10:59:18-04:00 WARN target=runtime::inclusion-inherent message=ParentBlockRandomness did not provide entropy ext_logging_log_version_1 pkg=runtime module=go-wasmer
2023-07-17T10:59:20-04:00 INFO 🔗 imported blocks from 0 to 0 (hashes [0x7f56d9f6097a23ef474b211e33b55a75384f475067082bd23e75b985ccd0b0a7 ... 0x7f56d9f6097a23ef474b211e33b55a75384f475067082bd23e75b985ccd0b0a7]) pkg=sync
2023-07-17T10:59:20-04:00 INFO 🚣 currently syncing, 0 peers connected, target block number 4294967295, 0.00 average blocks/second, 0.00 overall average, finalised block number
@EclesioMeloJunior
EclesioMeloJunior / gist:13fe5c6e829d1a20963eee44a32887b3
Created July 14, 2023 20:42
output `BlockBuilder_inherent_extrinsics`
==> 08280402000bf19322568901d105042d00000000bea4783f2363023d8db74d679b1e89fcad4adfef511dcc50072d51039f1be26b04046cc73a79cd3ef06c451f6388178370f7131c3cd8ea76138f9a8c20900b120ecd407d3a4683c82ca8529d1afcd8c414e3e2aec737494770e4ac4166b62b506e0c0642414245b50103000000007748c81000000000f8c9855a42b4963c4242776bd6e08a42fc6e5f37a0130225738faef675c962719383b0c8138dbfa2326902a669fe3c87af554c1cd4ca287fdc7a9dcb40b5bc0fd6d19fa168a2f3102997364425cf39ee5e334f854806f670fcaf03985ea52a05044241424529010104d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01000000000000000000000000000000000000000000000000000000000000000000000000000000054241424501013e74ca25106f0a77022fc2dcd33276b8cb48a9dfe5a1b28baa0147ec9d0aa24c5e17af6ddaf99c783e36c4ae19e73ae72cdb4b60f38717e9f7068f083d30d986
2023-07-14T16:40:54-04:00 WARN failed to handle slot 281561209: cannot build inherents: error applying inherent: transaction validity error: mandatory dispatch error pkg=babe
@EclesioMeloJunior
EclesioMeloJunior / gossamer logs output
Created November 11, 2022 15:05
CRITICAL ERROR GOSSAMER
./bin/gossamer --config ./chain/westend-local/config.toml
2022-11-11T11:00:55-04:00 INFO loading toml configuration from ./chain/westend-local/config.toml... config.go:L49 pkg=cmd
2022-11-11T11:00:55-04:00 WARN overwriting default configuration with id with toml configuration values from ./chain/westend-local/config.toml config.go:L53 pkg=cmd
2022-11-11T11:00:55-04:00 INFO loaded package log configuration: core: INFO, digest: INFO, sync: TRACE, network: TRACE, rpc: INFO, state: INFO, runtime: INFO, block producer: INFO, finality gadget: INFO config.go:L122 pkg=cmd
2022-11-11T11:00:55-04:00 INFO 🕸️ initialising node services with global configuration name brain-long-6896, id westend_local_testnet and base path /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/tmp/westend... node.go:L246 pkg=dot
2022-11-11T11:00:55-04:00 INFO created state service with head 0x18b801a8d7e7f3cfbf30d09a8761407ca9a103d5f549b32eeb47fe1743cd1e95, highest number 0 and genesis hash 0x18b801a8d7e7f3cfbf30d0
@EclesioMeloJunior
EclesioMeloJunior / ALICE
Created October 6, 2022 19:53
Gossamer Miss Behavior `Reason: Genesis mismatch`
2022-10-06 11:19:49.152 INFO main sc_cli::runner: Gossamer Test Node
2022-10-06 11:19:49.152 INFO main sc_cli::runner: ✌️ version 4.0.0-dev-4bac85c2774
2022-10-06 11:19:49.152 INFO main sc_cli::runner: ❤️ by ChainSafe <https://chainsafe.io>, 2017-2022
2022-10-06 11:19:49.152 INFO main sc_cli::runner: 📋 Chain specification: Gossamer Testnet [Dev]
2022-10-06 11:19:49.152 INFO main sc_cli::runner: 🏷 Node name: Alice
2022-10-06 11:19:49.152 INFO main sc_cli::runner: 👤 Role: AUTHORITY
2022-10-06 11:19:49.152 INFO main sc_cli::runner: 💾 Database: RocksDb at /var/folders/8h/102_dpq55wlf6831zfvspg600000gn/T/substrateQQpEjt/chains/gssmr_test_dev/db/full
2022-10-06 11:19:49.152 INFO main sc_cli::runner: ⛓ Native runtime: gssmr-test-9280 (gssmr-test-0.tx12.au0)
2022-10-06 11:19:49.631 INFO main sc_service::client::client: 🔨 Initializing Genesis block/state (state: 0x48d5…a5df, header-hash: 0x3690…806b)
2022-10-06 11:19:49.632 INFO main afg: 👴 Loading GRANDPA authority se
2022-10-05 20:13:17.413 INFO main sc_cli::runner: Gossamer Test Node
2022-10-05 20:13:17.413 INFO main sc_cli::runner: ✌️ version 4.0.0-dev-4bac85c2774
2022-10-05 20:13:17.413 INFO main sc_cli::runner: ❤️ by ChainSafe <https://chainsafe.io>, 2017-2022
2022-10-05 20:13:17.413 INFO main sc_cli::runner: 📋 Chain specification: Gossamer Testnet [Dev]
2022-10-05 20:13:17.413 INFO main sc_cli::runner: 🏷 Node name: Alice
2022-10-05 20:13:17.413 INFO main sc_cli::runner: 👤 Role: AUTHORITY
2022-10-05 20:13:17.413 INFO main sc_cli::runner: 💾 Database: RocksDb at /var/folders/8h/102_dpq55wlf6831zfvspg600000gn/T/substrate7A0Gu2/chains/gssmr_test_dev/db/full
2022-10-05 20:13:17.413 INFO main sc_cli::runner: ⛓ Native runtime: gssmr-test-9280 (gssmr-test-0.tx12.au0)
2022-10-05 20:13:17.936 INFO main sc_service::client::client: 🔨 Initializing Genesis block/state (state: 0x48d5…a5df, header-hash: 0x3690…806b)
2022-10-05 20:13:17.939 INFO main afg: 👴 Loading GRANDPA authority se
@EclesioMeloJunior
EclesioMeloJunior / config.toml
Created September 27, 2022 14:21
Reproduce a spamming Neighbor Message
[global]
basepath = "./tmp/dev"
log = "info"
metrics-address = ":9876"
[log]
core = ""
network = "trace"
rpc = ""
state = ""
@EclesioMeloJunior
EclesioMeloJunior / gossamer logs
Created September 6, 2022 21:01
Spamming neighbor messages increase the peer reputation
2022-09-06T16:54:26-04:00 INFO loading toml configuration from ./chain/dev/config.toml... config.go:L49 pkg=cmd
2022-09-06T16:54:26-04:00 WARN overwriting default configuration with id with toml configuration values from ./chain/dev/config.toml config.go:L53 pkg=cmd
2022-09-06T16:54:26-04:00 INFO loaded package log configuration: core: INFO, digest: INFO, sync: INFO, network: TRACE, rpc: INFO, state: INFO, runtime: INFO, block producer: INFO, finality gadget: TRACE config.go:L122 pkg=cmd
2022-09-06T16:54:26-04:00 INFO 🕸️ initialising node with name trap-lobster-59216, id gssmr, base path /Users/eclesiojunior/go/src/github.com/ChainSafe/gossamer/tmp/bob and genesis ./chain/dev/genesis.json... node.go:L128 pkg=dot
2022-09-06T16:54:28-04:00 INFO block state hash genesis hash: 0x2d42e1c0b9e689cdf2b51a09621be564171bdde521fdb169fe538f69c0adb97a initialize.go:L109 pkg=state
2022-09-06T16:54:28-04:00 INFO node initialised with name trap-lobster-59216, id gssmr, base path /Users/eclesiojunior/