Skip to content

Commit

Permalink
Merge pull request #888 from moonbeam-foundation/eshaben/moonbeam-vs-eth
Browse files Browse the repository at this point in the history
Moonbeam vs Ethereum reorg
  • Loading branch information
eshaben committed May 3, 2024
2 parents e03f70a + 777ed3d commit 443e5ba
Show file tree
Hide file tree
Showing 102 changed files with 1,088 additions and 623 deletions.
@@ -1,16 +1,16 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>docker pull moonbeamfoundation/moonbeam:v0.36.0</span>
<span data-ty="input"><span class="file-path"></span>docker pull moonbeamfoundation/moonbeam:v0.37.2</span>
<br>
<span data-ty>v0.36.0: Pulling from moonbeamfoundation/moonbeam
<br> e1caac4eb9d2: Pull complete
<br> 303f0b059437: Pull complete
<br> 1987eeb667a4: Pull complete
<br> c2b8e919bd5a: Pull complete
<br> c6a7952896a0: Pull complete
<br> 3ad97e77096a: Pull complete
<br> a5e5655dbb4f: Pull complete
<br> Digest: sha256:099e885c4601c8f7ba4408492f2df142920a794baf019cf71cf3a3a16810f504
<br> Status: Downloaded newer image for moonbeamfoundation/moonbeam:v0.36.0
<br> docker.io/moonbeamfoundation/moonbeam:v0.36.0
<span data-ty>v0.37.2: Pulling from moonbeamfoundation/moonbeam
<br> b0a0cf830b12: Pull complete
<br> fbff687640dd: Pull complete
<br> 58ea427410e2: Pull complete
<br> 811ba55e6e61: Pull complete
<br> 4316d5f1b914: Pull complete
<br> 128693ce218e: Pull complete
<br> a3ac90b88463: Pull complete
<br> Digest: sha256:1def3370159ee7d14fce3951a1198bda7c51af566e0b3d69ce4644338e29f046
<br> Status: Downloaded newer image for moonbeamfoundation/moonbeam:v0.37.2
<br> docker.io/moonbeamfoundation/moonbeam:v0.37.2
</span>
</div>
@@ -1,38 +1,38 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>docker run --rm --name moonbeam_development --network host \
<br> moonbeamfoundation/moonbeam:v0.36.0 \
<br> moonbeamfoundation/moonbeam:v0.37.2 \
<br> --dev --rpc-external
</span>
<br>
<span data-ty>CLI parameter `--execution` has no effect anymore and will be removed in the future!
<br> 2024-02-27 06:09:29 Moonbeam Parachain Collator
<br> 2024-02-27 06:09:29 ✌️ 0.36.0-d1087f30917
<br> 2024-02-27 06:09:29 ❤️ by PureStake, 2019-2024
<br> 2024-02-27 06:09:29 📋 Chain specification: Moonbase Development Testnet
<br> 2024-02-27 06:09:29 🏷 Node name: black-and-white-sticks-9174
<br> 2024-02-27 06:09:29 👤 Role: AUTHORITY
<br> 2024-02-27 06:09:29 💾 Database: RocksDb at /tmp/substrateO3YeRz/chains/moonbase_dev/db/full
<br> 2024-02-27 06:09:40 🔨 Initializing Genesis block/state (state: 0x7c34…99c5, header-hash: 0xa083…f354)
<br> 2024-02-27 06:09:40 Using default protocol ID "sup" because none is configured in the chain specs
<br> 2024-02-27 06:09:40 🏷 Local node identity is: 12D3KooWLcpczme2JeBEfLqmjqkzYVKTGKhhGmwSzHjRXGBVhDX7
<br> 2024-02-27 06:09:40 💻 Operating system: linux
<br> 2024-02-27 06:09:40 💻 CPU architecture: x86_64
<br> 2024-02-27 06:09:40 💻 Target environment: gnu
<br> 2024-02-27 06:09:40 💻 CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
<br> 2024-02-27 06:09:40 💻 CPU cores: 12
<br> 2024-02-27 06:09:40 💻 Memory: 7946MB
<br> 2024-02-27 06:09:40 💻 Kernel: 6.4.16-linuxkit
<br> 2024-02-27 06:09:40 💻 Linux distribution: Debian GNU/Linux 12 (bookworm)
<br> 2024-02-27 06:09:40 💻 Virtual machine: yes
<br> 2024-02-27 06:09:40 📦 Highest known block at #0
<br> 2024-02-27 06:09:40 Running JSON-RPC server: addr=0.0.0.0:9944, allowed origins=["*"]
<br> 2024-02-27 06:09:40 🏁 CPU score: 1.14 GiBs
<br> 2024-02-27 06:09:40 〽️ Prometheus exporter started at 127.0.0.1:9615
<br> 2024-02-27 06:09:40 🏁 Memory score: 10.41 GiBs
<br> 2024-02-27 06:09:40 🏁 Disk score (seq. writes): 987.96 MiBs
<br> 2024-02-27 06:09:40 🏁 Disk score (rand. writes): 363.65 MiBs
<br> 2024-02-27 06:09:40 Development Service Ready
<br> 2024-02-27 06:09:45 💤 Idle (0 peers), best: #0 (0xa083…f354), finalized #0 (0xa083…f354), ⬇ 0 ⬆ 0
<br> 2024-02-27 06:09:50 💤 Idle (0 peers), best: #0 (0xa083…f354), finalized #0 (0xa083…f354), ⬇ 0 ⬆ 0
<br> 2024-04-29 06:09:29 Moonbeam Parachain Collator
<br> 2024-04-29 06:09:29 ✌️ 0.37.2-be5032c7749
<br> 2024-04-29 06:09:29 ❤️ by PureStake, 2019-2024
<br> 2024-04-29 06:09:29 📋 Chain specification: Moonbase Development Testnet
<br> 2024-04-29 06:09:29 🏷 Node name: black-and-white-sticks-9174
<br> 2024-04-29 06:09:29 👤 Role: AUTHORITY
<br> 2024-04-29 06:09:29 💾 Database: RocksDb at /tmp/substrateO3YeRz/chains/moonbase_dev/db/full
<br> 2024-04-29 06:09:40 🔨 Initializing Genesis block/state (state: 0xf7c4…5c0f, header-hash: 0x42bd…3b5b)
<br> 2024-04-29 06:09:40 Using default protocol ID "sup" because none is configured in the chain specs
<br> 2024-04-29 06:09:40 🏷 Local node identity is: 12D3KooWLcpczme2JeBEfLqmjqkzYVKTGKhhGmwSzHjRXGBVhDX7
<br> 2024-04-29 06:09:40 💻 Operating system: linux
<br> 2024-04-29 06:09:40 💻 CPU architecture: x86_64
<br> 2024-04-29 06:09:40 💻 Target environment: gnu
<br> 2024-04-29 06:09:40 💻 CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
<br> 2024-04-29 06:09:40 💻 CPU cores: 12
<br> 2024-04-29 06:09:40 💻 Memory: 7946MB
<br> 2024-04-29 06:09:40 💻 Kernel: 6.4.16-linuxkit
<br> 2024-04-29 06:09:40 💻 Linux distribution: Debian GNU/Linux 12 (bookworm)
<br> 2024-04-29 06:09:40 💻 Virtual machine: yes
<br> 2024-04-29 06:09:40 📦 Highest known block at #0
<br> 2024-04-29 06:09:40 Running JSON-RPC server: addr=0.0.0.0:9944, allowed origins=["*"]
<br> 2024-04-29 06:09:40 🏁 CPU score: 1.14 GiBs
<br> 2024-04-29 06:09:40 〽️ Prometheus exporter started at 127.0.0.1:9615
<br> 2024-04-29 06:09:40 🏁 Memory score: 10.41 GiBs
<br> 2024-04-29 06:09:40 🏁 Disk score (seq. writes): 987.96 MiBs
<br> 2024-04-29 06:09:40 🏁 Disk score (rand. writes): 363.65 MiBs
<br> 2024-04-29 06:09:40 Development Service Ready
<br> 2024-04-29 06:09:45 💤 Idle (0 peers), best: #0 (0xa083…f354), finalized #0 (0xa083…f354), ⬇ 0 ⬆ 0
<br> 2024-04-29 06:09:50 💤 Idle (0 peers), best: #0 (0xa083…f354), finalized #0 (0xa083…f354), ⬇ 0 ⬆ 0
</span>
</div>
@@ -0,0 +1,25 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>docker run --network host \
<br>-u $(id -u ${USER}):$(id -g ${USER}) \
moonbeamfoundation/moonbeam-tracing:v0.37.2-2902-latest \
<br>--name="Moonbean-Tracing-Tutorial" \
<br>--unsafe-rpc-external \
<br>--ethapi=debug,trace,txpool \
<br>--wasm-runtime-overrides=/moonbeam/moonbase-substitutes-tracing \
<br>--runtime-cache-size 64 \
<br>--dev
</span>
<br>
<span data-ty>CLI parameter `--execution` has no effect anymore and will be removed in the future!
<br> 2024-04-29 13:52:00 Moonbeam Parachain Collator
<br> 2024-04-29 13:52:00 ✌️ version 0.37.2-be5032c7749
<br> 2024-04-29 13:52:00 ❤️ by PureStake, 2019-2024
<br> 2024-04-29 13:52:00 📋 Chain specification: Moonbase Development Testnet
<br> 2024-04-29 13:52:00 🏷 Node name: Moonbean-Tracing-Tutorial
<br> 2024-04-29 13:52:00 👤 Role: AUTHORITY
<br> 2024-04-29 13:52:00 💾 Database: RocksDb at /tmp/substrateO3YeRz/chains/moonbase_dev/db/full
<br> 2024-04-29 14:52:13 Found wasm override. version=moonbase-300 (moonbase-0.tx2.au3) file=/moonbeam/moonbase-substitutes-tracing/moonbase-runtime-300-substitute-tracing.wasm
<br> ...
<br> 2024-04-29 14:56:34 💤 Idle (0 peers), best: #0 (0x18e6…2eb1), finalized #0 (0x18e6…2eb1), ⬇ 0 ⬆ 0
</span>
</div>
@@ -0,0 +1,14 @@
<div id="termynal" data-termynal>
<span data-ty>asm override. version=moonbase-400 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/moo nbase-runtime-400-substitute-tracing.wasm
<br>Jun 03 12:45:55 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:45:55 [🌗] Found w asm override. version-moonbase-155 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/moo
nbase-runtime-155-substitute-tracing. wasm
<br>Jun 03 12:45:56 vmi719182. contaboserver.net moonbase [2115]: 2022-06-03 12:45:56 [🌗] Found w asm override. version-moonbase-501 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/moo nbase-runtime-501-substitute-tracing.wasm
<br>Jun 03 12:45:57 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:45:57 [🌗] Found w asm override. version-moonbase-1200 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/mo onbase-runtime-1200-substitute-tracing.wasm
<br>Jun 03 12:45:58 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:45:58 [🌗] Found w asm override. version-moonbase-47 (moonbase-1.tx2.au3) file=/var/lib/alphanet-data/wasm/moon base-runtime-47-substitute-tracing.wasm
<br>Jun 03 12:46:00 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:46:00 [🌗] Found w asm override. version=moonbase-1501 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/mo onbase-runtime-1501-substitute-tracing.wasm
<br>Jun 03 12:46:01 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:46:01 [🌗] Found w asm override. version-moonbase-900 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/moo nbase-runtime-900-substitute-tracing.wasm
<br>Jun 03 12:46:04 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:46:04 [🌗] Found w asm override. version-moonbase-1504 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/mo onbase-runtime-1504-substitute-tracing.wasm
<br>Jun 03 12:46:05 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:46:05 [🌗] Found w asm override. version-moonbase-1101 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/mo onbase-runtime-1101-substitute-tracing.wasm
<br>Jun 03 12:46:07 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:46:07 [🌗] Found w asm override. version-moonbase-800 (moonbase-0.tx2.au3) file=/var/lib/alphanet-data/wasm/moo nbase-runtime-800-substitute-tracing.wasm
</span>
</div>
@@ -0,0 +1,24 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>systemctl status moonbeam.service</span>
<span data-ty>● moonbeam.service - "Moonbase Alpha systemd service"
<br>Loaded: loaded (/etc/systemd/system/moonbeam.service; enabled; vendor preset: enabled)
<br>Active: active (running) since Fri 2022-06-03 12:45:08 EDT; 10min ago
<br>Main PID: 2115 (moonbeam)
<br>Tasks: 43 (limit: 19141)
<br>Memory: 9.5G
<br>CGroup:/system.slice/moonbeam.service
<br>--2115 /var/lib/alphanet-data/moonbeam --port 30334 --rpc-port 9944
</span>
<br>
<span data-ty>Jun 03 12:55:07 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:07 [🌗] >
<br>Jun 03 12:55:08 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:08 [Rela>
<br>Jun 03 12:55:12 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:12 [🌗] >
<br>Jun 03 12:55:13 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:13 [Rela>
<br>Jun 03 12:55:17 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:17 [🌗] >
<br>Jun 03 12:55:18 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:18 [Rela>
<br>Jun 03 12:55:19 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:19 [Rela>
<br>Jun 03 12:55:19 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:19 [Rela>
<br>Jun 03 12:55:19 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:19 [Rela>
<br>Jun 03 12:55:19 vmi719182.contaboserver.net moonbase [2115]: 2022-06-03 12:55:19 [Rela>
</span>
</div>
@@ -1,2 +1,2 @@
!!! note
There can be some unintended consequences when using the precompiled contracts on Moonbeam. Please refer to the [Security Considerations](/builders/get-started/eth-compare/security){target=\_blank} page for more information.
There can be some unintended consequences when using the precompiled contracts on Moonbeam. Please refer to the [Security Considerations](/learn/core-concepts/security){target=\_blank} page for more information.
@@ -1,6 +1,6 @@
#### Use a SQL Backend for Frontier {: #use-sql }

The default [Frontier](/learn/features/eth-compatibility/#frontier){target=\_blank} database, which comes standard with Moonbeam nodes and contains all of the Ethereum-related elements, such as transactions, blocks, and logs, can be modified to use a SQL backend. Since `eth_getLogs` is a very resource-intensive method, the SQL backend aims to provide a more performant alternative for indexing and querying Ethereum logs in comparison to the default RocksDB database.
The default [Frontier](/learn/platform/technology/#frontier){target=\_blank} database, which comes standard with Moonbeam nodes and contains all of the Ethereum-related elements, such as transactions, blocks, and logs, can be modified to use a SQL backend. Since `eth_getLogs` is a very resource-intensive method, the SQL backend aims to provide a more performant alternative for indexing and querying Ethereum logs in comparison to the default RocksDB database.

To spin up a node with a Frontier SQL backend, you'll need to add the `--frontier-backend-type sql` flag to your start-up command.

Expand Down
1 change: 1 addition & 0 deletions builders/.pages
Expand Up @@ -4,6 +4,7 @@ nav:
- index.md
- get-started
- build
- json-rpc
- pallets-precompiles
- interoperability
- integrations
4 changes: 2 additions & 2 deletions builders/build/.pages
@@ -1,8 +1,8 @@
title: Build
title: Development Toolkit
hide: false
nav:
- index.md
- 'Canonical Contracts': 'canonical-contracts.md'
- eth-api
- substrate-api
- 'Moonbeam Custom API': 'moonbeam-custom-api.md'

4 changes: 1 addition & 3 deletions builders/build/eth-api/.pages
@@ -1,8 +1,6 @@
title: Ethereum API
title: Ethereum Tools
nav:
- index.md
- libraries
- dev-env
- verify-contracts
- 'Debug & Trace': 'debug-trace.md'
- 'Events Subscription': 'pubsub.md'

0 comments on commit 443e5ba

Please sign in to comment.