Skip to content
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

ENG-326: Full Node Commitments #58

Merged
merged 113 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
e61c112
fix: adding stub.
l-monninger May 13, 2024
8228d24
Merge branch 'l-monninger/ci-fix' into eng-326/full-node-commitments
l-monninger May 13, 2024
bd6c85d
fix: remove duplicate trait.
l-monninger May 13, 2024
15c7781
fix: cleanup.
l-monninger May 13, 2024
e4a5b65
mcr-settlement-client: fmt
mzabaluev May 13, 2024
c225540
Merge branch 'main' into eng-326/full-node-commitments
mzabaluev May 13, 2024
eee8edd
movement-types: Commitment from StateProof
mzabaluev May 13, 2024
edc750f
opt-executor: reorder use statements
mzabaluev May 13, 2024
1e5d803
Return Commitment from executors' execute_block
mzabaluev May 13, 2024
4c38cc2
fix: drop contracts.
l-monninger May 14, 2024
04972b7
Merge branch '0xmovses/ENG-317-implement-mcr-contracts' into eng-326/…
l-monninger May 14, 2024
b1a41ba
fix: swap tonic for async trait.
l-monninger May 14, 2024
1f6792d
fix: merge.
l-monninger May 14, 2024
959fbbb
feat: add max tolerable height.
l-monninger May 14, 2024
2753f1d
feat: Instantiate MCR settlement client
mzabaluev May 14, 2024
6c7670c
Merge branch 'main' into eng-326/full-node-commitments
mzabaluev May 14, 2024
01cd707
Return BlockCommitment from execute_block
mzabaluev May 14, 2024
aad48b8
feat(suzuka-full-node): settle block commitments
mzabaluev May 14, 2024
de96f0d
print error returned by process_commitment
mzabaluev May 15, 2024
843822a
Use get_max_tolerable_block_height
mzabaluev May 15, 2024
ac810cc
chore: cleanup.
l-monninger May 15, 2024
b4e8b43
feat: m1-da-light-node.
l-monninger May 15, 2024
a231b16
fix: remove vendors.
l-monninger May 16, 2024
2f35240
fix: trying top-level.
l-monninger May 16, 2024
b747d43
fix: moving back into ./nix.
l-monninger May 16, 2024
0899b94
docker: works.
l-monninger May 16, 2024
6a46edb
suzuka-full-node: process settled commitments
mzabaluev May 16, 2024
60330fe
test(opt-executor): verify block commitment
mzabaluev May 16, 2024
a36219e
Merge branch 'main' into eng-326/full-node-commitments
mzabaluev May 16, 2024
0e96fb6
opt-executor: use version from state compute
mzabaluev May 16, 2024
92b1dd1
fix: testing nix.
l-monninger May 16, 2024
9e15013
Merge branch 'eng-326/full-node-commitments' of https://github.com/mo…
l-monninger May 16, 2024
6c6a2d8
feat: scaffolding and u8; 32.
l-monninger May 16, 2024
a0ebf39
refactor(opt-executor): method to helper fn
mzabaluev May 16, 2024
0739632
Implement Commitment::digest_state_proof
mzabaluev May 16, 2024
eab891c
opt-executor: try different way for block height
mzabaluev May 16, 2024
da3fdbe
fix: docker.
l-monninger May 16, 2024
9a1dfac
example: bad test.
l-monninger May 16, 2024
c8edb4a
fix: passing test.
l-monninger May 16, 2024
608b947
fix: working on docker.
May 17, 2024
cbf1cfb
Merge branch 'docker/docker-nix' of github.com:movementlabsxyz/moveme…
May 17, 2024
db80751
fix: bash.
May 17, 2024
2796ca0
Merge branch 'main' into docker/docker-nix
May 17, 2024
3dd9ac6
feat: add docker image flow.
May 17, 2024
ef3dc9f
fix: should be named containers.
May 17, 2024
cc67080
fix: should be named containers.
May 17, 2024
f14f6be
fix: see if shell: bash fixes.
May 17, 2024
dc2a94f
fix: dropping /usr/bin/env for now.
May 17, 2024
0344a20
opt-executor: copy block metadata trick
mzabaluev May 17, 2024
b013d3e
mcr-settlement-manager: flesh out logic
mzabaluev May 17, 2024
bdcfb37
mcr-settlement-manager: revamp API
mzabaluev May 17, 2024
98ee88d
fix: bumping to docker login v3.
May 18, 2024
4c2231e
fix: bumping to docker login v3.
May 18, 2024
e073e33
fix: cleanup.
May 18, 2024
cfef413
fix: trying build then push.
May 18, 2024
fb2558e
fix: build.
May 18, 2024
dcb82bf
fix: execution concurrency bug.
May 18, 2024
c5376dc
fix: cleanup.
May 18, 2024
3815e9a
feat: trying with scratch.
May 18, 2024
3880d1b
fix: should not be copying result.
May 18, 2024
b92f0a1
fix: try with scratch.
May 18, 2024
79557bf
feat: use build stages with nixos.
l-monninger May 18, 2024
e89dcc1
fix: use build dir
l-monninger May 18, 2024
2a689d6
fix: compare release binaries
l-monninger May 18, 2024
f588553
feat: with select binaries.
l-monninger May 19, 2024
28590a6
feat: explicit buildx.
l-monninger May 19, 2024
bbc5576
feat: without builder.
l-monninger May 19, 2024
ee09836
feat: copy nix.
l-monninger May 19, 2024
a051793
mcr-settlement-manager: basic test
mzabaluev May 20, 2024
f53a83c
opt-executor: gracefully handle empty block
mzabaluev May 20, 2024
b7f1eb1
mcr-settlement-client: convert stub to mock
mzabaluev May 20, 2024
56f408f
mcr-settlement-manager: test commit rejection
mzabaluev May 20, 2024
0f1c2f8
suzuka-full-node: use the mock MCR client
mzabaluev May 20, 2024
dc7de5e
mcr-settlement-manager: fix up doc
mzabaluev May 20, 2024
5803533
feat: native builds.
l-monninger May 20, 2024
0520669
suzuka-full-node: fix crate dependency
mzabaluev May 20, 2024
7cb00d1
fix: keep all context.
l-monninger May 20, 2024
ea3796a
feat: better usage.
l-monninger May 20, 2024
5ef76f4
fix: m1-da-light-node needs defaults.
l-monninger May 20, 2024
b6eda06
Change monza scripts to suzuka
mzabaluev May 20, 2024
089bd51
feat: prebuild aptos-faucet-service.
l-monninger May 20, 2024
c17c398
fix: use ubuntu-latest instead of movement-runner.
l-monninger May 21, 2024
6c280b4
feat: reduced logging.
l-monninger May 21, 2024
ea0b632
fix: merge.
l-monninger May 21, 2024
e63b9c6
fix: merge.
l-monninger May 21, 2024
898e12c
fix: reduced logging.
l-monninger May 21, 2024
55f6e54
fix: monza should not be called suzuka.
l-monninger May 21, 2024
47423a4
fix: quieter logging.
l-monninger May 21, 2024
709761c
fix: use FATAL instead of DPANIC.
l-monninger May 21, 2024
0ff96c0
fix: timestamp.
l-monninger May 21, 2024
2af0c7a
fix: bad mergee.
l-monninger May 21, 2024
6446569
CI: run suzuka-full-node tests
mzabaluev May 22, 2024
03e626e
fix: prebuild.
l-monninger May 22, 2024
489d7c8
Fix up naming in suzuka scripts again
mzabaluev May 22, 2024
bdc0388
CI: disable MOVEMENT_PREBUILT
mzabaluev May 22, 2024
8a332be
CI: don't run prebuild script
mzabaluev May 22, 2024
76fce46
scripts: fix up m1-da-light-node build
mzabaluev May 23, 2024
2719489
scripts: restore monza-aptos naming
mzabaluev May 23, 2024
9ca5b08
CI: print available filesystem space
mzabaluev May 23, 2024
e8d9dca
fix: movement-runner down to debug.
l-monninger May 23, 2024
a0c7681
fix: bad prebuild of aptos-faucet-service.
l-monninger May 23, 2024
abd1bb7
fix: drop containers from ci for now.
l-monninger May 23, 2024
2c2a2ec
fix: missing block metadata.
l-monninger May 23, 2024
6dc612f
opt-executor: refactor execute_block_inner
mzabaluev May 23, 2024
146c51d
Implement get_block_head_height in executors
mzabaluev May 23, 2024
f0abc03
opt-executor: fix up compile
mzabaluev May 24, 2024
47e90a5
streamline logging
mzabaluev May 24, 2024
06ce28d
chore: remove and ignore MCR contract logs
mzabaluev May 24, 2024
fae30be
suzuka-executor: sanity-test block commitment
mzabaluev May 24, 2024
63726a0
mcr-settlement-client: rename settle method
mzabaluev May 27, 2024
b4999b3
mcr-settlement-client: pause and resume for mock
mzabaluev May 27, 2024
df9cb38
mcr-settlement-manager: test back pressure
mzabaluev May 27, 2024
e5feea0
m1-da-light-node: expanded FIXME comment
mzabaluev May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C",
[target.x86_64-unknown-linux-gnu]
rustflags = ["--cfg", "tokio_unstable", "-C", "link-arg=-fuse-ld=lld", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-C", "target-feature=+sse4.2"]

[target.aarch64-unknown-linux-gnu]
rustflags = [
"--cfg", "tokio_unstable",
"-C", "link-arg=-fuse-ld=lld",
"-C", "force-frame-pointers=yes",
"-C", "force-unwind-tables=yes",
"-C", "target-feature=+neon"
]

# 64 bit MSVC
[target.x86_64-pc-windows-msvc]
rustflags = [
Expand All @@ -32,4 +41,4 @@ rustflags = [
"force-unwind-tables=yes",
"-C",
"link-arg=/STACK:8000000" # Set stack to 8 MB
]
]
14 changes: 11 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ jobs:
- name: Run Cargo Check in nix environment
run: nix develop --command bash -c "cargo check"

# - name: Prebuild binaries in nix environment
# run: nix develop --command bash -c "./scripts/build/prebuild"

- name: Run M1 DA Light Node tests in nix environment
run: nix develop --command bash -c "just m1-da-light-node test.local -t=false"
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL MOVEMENT_PREBUILT=false nix develop --command bash -c "just m1-da-light-node test.local -t=false"

- name: Print available filesystem space
run: df -h

- name: Run monza tests in nix environment
run: nix develop --command bash -c "just monza-full-node test.local -t=false"
- name: Run suzuka tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL MOVEMENT_PREBUILT=false nix develop --command bash -c "just suzuka-full-node test.local -t=false"
30 changes: 30 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Containers

on:
push:

jobs:
containers:
if: false # Remove this line to enable the job
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'movement-runner' || 'buildjet-16vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image movement
78 changes: 0 additions & 78 deletions .idea/workspace.xml

This file was deleted.

Loading