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

Verify parachain headers #6

Merged

Conversation

andor0
Copy link
Contributor

@andor0 andor0 commented Apr 11, 2022

@andor0 andor0 force-pushed the andor0/verify-parachain-headers branch 4 times, most recently from 892f901 to 616f7ac Compare April 11, 2022 14:19
@andor0 andor0 force-pushed the andor0/verify-parachain-headers branch from 616f7ac to 1f9e381 Compare April 11, 2022 14:33
@andor0 andor0 marked this pull request as ready for review April 11, 2022 14:53
@nimboya nimboya merged commit 59ef414 into david-verify-parachain-headers Apr 11, 2022
@blasrodri blasrodri deleted the andor0/verify-parachain-headers branch November 1, 2022 08:37
dzmitry-lahoda pushed a commit that referenced this pull request Sep 15, 2023
# This is the 1st commit message:

Remove-rate-limit (#393)


# This is the commit message #2:

Refactor packet sequence handling in query methods (#394)

* Refactor packet sequence handling in query methods

Replaced `HashSet` with `HashMap` for efficient and accurate packet sequence handling in `query_send_packets` and `query_received_packets` methods. The change optimizes the query process by ensuring that the latest block events are tracked correctly.

* add a comment
# This is the commit message #3:

Ensure target block headers are within votes ancestries (#396)

* Ensure target block headers are within votes ancestries

Added necessary logic to fetch and include the target block header manually in the event it is not found within the returned justification's votes ancestries. This resolves potential issues where the target block header may not be immediately available within the ancestries of the justification.

* add the target only if the ancestries are not empty
# This is the commit message #4:

chore: upgrade to polkadot-v0.9.43

# This is the commit message #5:

upgrade hash-db

# This is the commit message #6:

more hash-db

# This is the commit message #7:

sp_consensus_grandpa rename

# This is the commit message #8:

fungibles::Transfer becomes Mutate

paritytech/substrate#12951

# This is the commit message #9:

update toolchain

# This is the commit message #10:

keystore updates

# This is the commit message #11:

benchmarks compiling

# This is the commit message #12:

compilation errors

# This is the commit message #13:

comment

# This is the commit message #14:

cargo fmt

# This is the commit message #15:

propagate dependencies

# This is the commit message #16:

more updates

# This is the commit message #17:

updates

# This is the commit message #18:

nasty trick to make it compile

# This is the commit message #19:

more

# This is the commit message #20:

fmt

# This is the commit message #21:

build network

# This is the commit message #22:

rm rootevent

# This is the commit message #23:

rm Root

# This is the commit message #24:

rm more rootevent

# This is the commit message #25:

life is hard

# This is the commit message #26:

replace codec

# This is the commit message #27:

fix codegen

# This is the commit message #28:

update polkadot-launch
RustNinja added a commit that referenced this pull request Sep 27, 2023
* chore: upgrade to polkadot-v0.9.43

* upgrade hash-db

* more hash-db

* sp_consensus_grandpa rename

* fungibles::Transfer becomes Mutate

paritytech/substrate#12951

* update toolchain

* keystore updates

* benchmarks compiling

* compilation errors

* comment

* cargo fmt

* propagate dependencies

* more updates

* updates

* nasty trick to make it compile

* more

* fmt

* build network

* rm rootevent

* rm Root

* rm more rootevent

* life is hard

* replace codec

* fix codegen

* change Keystore for MemoryStore

* change preservation parameter in transfer function
from Preservation::Protect to Preservation::Expendable

* rm logger

* fix unused import

* update polkadot-launch

* bullish

* change wsPort for rpcPort on parachain-launch/config

* fix ports

* udeps is happy

* make docker-compose work fine

* Create config.json

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

* fixed zombie chain id

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

* more like PL config

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

* script to ZN start

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

* added zombienet guide

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

* add zombienet to ci

* fixing workflow to enable nix installation

* merge install nix with installation for zombienet

* nix before zombienet

* change version and add nix-build

* remove old nativ polka launch, added logs from it to ZN

* fixing ci nix install

* using other action

* test nix first

* br

* propagate runtime-benchmarks

* docker

* thing is that need to disable broadcast discovery, to avoid connecting to wrong relay (similar to docker network isolation)

* fixing nix ci

* docker isntall

* proper ports

* probe

* 100% same nix install as in composable repo on official GH runners

* runs

* try nix-quick-install-actio

* install manually

* get {ZN, process-comopse} as binaries (ditching NIX)

* more fixes

* wrong pwd

* fixed ports and run cluster in background

* clean

* rm nodejs installation

* fix port of second network

* oh go devs

* no dashes

* get some logs

* chmod everybody

* chmod polkadot

* sleep before checking status of parachains

* add BenchmarkHelper on mock::Test

* query PARA_HOST

* fix typo in script

* reduced amount of blocks to wait, tested locally - ports are super ok and make READY status

* wheriam

* ports

* no docker ...

* no netstat

* given same set of product, one cooks bad and one well

* debug netsat

* very high sleep just to debug

* nohup

* sleep after checks

* changing step Wait until parachains are ready

* don't run process compose

* remove the nohup

* fixing lines 132 and 133

* revert v2 of actions

* unify steps

* relative path

* avoid installing parachain-node

* feature flag BenchmarkHelper and propagate runtime-benchmarks

* feature flag BenchmarkHelper and propagate runtime-benchmarks

* only one relaychain to rule them all

* update url of static server

* remove unsafe_cast_to_jsonrpsee_client

* update the timestamp

* fix build.

* Revert "fix build."

This reverts commit 8cfb09d.

* Revert "update the timestamp"

This reverts commit 2059cf3.

* final fix for extrinsic tests

* remove unsafe_cast_to_jsonrpsee_client

* compilation issue

* fix keystore

* fix weight decoding

* key is compact u32

* increase timeouts

* update ports on zombienet

* .9.43:

* # This is a combination of 28 commits.
# This is the 1st commit message:

Remove-rate-limit (#393)


# This is the commit message #2:

Refactor packet sequence handling in query methods (#394)

* Refactor packet sequence handling in query methods

Replaced `HashSet` with `HashMap` for efficient and accurate packet sequence handling in `query_send_packets` and `query_received_packets` methods. The change optimizes the query process by ensuring that the latest block events are tracked correctly.

* add a comment
# This is the commit message #3:

Ensure target block headers are within votes ancestries (#396)

* Ensure target block headers are within votes ancestries

Added necessary logic to fetch and include the target block header manually in the event it is not found within the returned justification's votes ancestries. This resolves potential issues where the target block header may not be immediately available within the ancestries of the justification.

* add the target only if the ancestries are not empty
# This is the commit message #4:

chore: upgrade to polkadot-v0.9.43

# This is the commit message #5:

upgrade hash-db

# This is the commit message #6:

more hash-db

# This is the commit message #7:

sp_consensus_grandpa rename

# This is the commit message #8:

fungibles::Transfer becomes Mutate

paritytech/substrate#12951

# This is the commit message #9:

update toolchain

# This is the commit message #10:

keystore updates

# This is the commit message #11:

benchmarks compiling

# This is the commit message #12:

compilation errors

# This is the commit message #13:

comment

# This is the commit message #14:

cargo fmt

# This is the commit message #15:

propagate dependencies

# This is the commit message #16:

more updates

# This is the commit message #17:

updates

# This is the commit message #18:

nasty trick to make it compile

# This is the commit message #19:

more

# This is the commit message #20:

fmt

# This is the commit message #21:

build network

# This is the commit message #22:

rm rootevent

# This is the commit message #23:

rm Root

# This is the commit message #24:

rm more rootevent

# This is the commit message #25:

life is hard

# This is the commit message #26:

replace codec

# This is the commit message #27:

fix codegen

# This is the commit message #28:

update polkadot-launch

* Remove-rate-limit (#393)

Refactor packet sequence handling in query methods (#394)

* Refactor packet sequence handling in query methods

Replaced `HashSet` with `HashMap` for efficient and accurate packet sequence handling in `query_send_packets` and `query_received_packets` methods. The change optimizes the query process by ensuring that the latest block events are tracked correctly.

* add a comment

Ensure target block headers are within votes ancestries (#396)

* Ensure target block headers are within votes ancestries

Added necessary logic to fetch and include the target block header manually in the event it is not found within the returned justification's votes ancestries. This resolves potential issues where the target block header may not be immediately available within the ancestries of the justification.

* add the target only if the ancestries are not empty

chore: upgrade to polkadot-v0.9.43

upgrade hash-db

more hash-db

sp_consensus_grandpa rename

fungibles::Transfer becomes Mutate

paritytech/substrate#12951

update toolchain

keystore updates

benchmarks compiling

compilation errors

comment

cargo fmt

propagate dependencies

more updates

updates

nasty trick to make it compile

more

fmt

build network

rm rootevent

rm Root

rm more rootevent

life is hard

replace codec

fix codegen

update polkadot-launch

upgrade types to match version release-v9.10037.1 (#399)

* upgrade types to match version release-v9.10037.1

* fmt

change Keystore for MemoryStore

change preservation parameter in transfer function
from Preservation::Protect to Preservation::Expendable

rm logger

fix unused import

bullish

change wsPort for rpcPort on parachain-launch/config

fix ports

udeps is happy

make docker-compose work fine

Create config.json

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

fixed zombie chain id

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

more like PL config

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

script to ZN start

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

added zombienet guide

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>

add zombienet to ci

fixing workflow to enable nix installation

merge install nix with installation for zombienet

nix before zombienet

change version and add nix-build

remove old nativ polka launch, added logs from it to ZN

fixing ci nix install

using other action

test nix first

br

propagate runtime-benchmarks

docker

thing is that need to disable broadcast discovery, to avoid connecting to wrong relay (similar to docker network isolation)

fixing nix ci

docker isntall

proper ports

probe

100% same nix install as in composable repo on official GH runners

runs

try nix-quick-install-actio

install manually

get {ZN, process-comopse} as binaries (ditching NIX)

more fixes

wrong pwd

fixed ports and run cluster in background

clean

rm nodejs installation

fix port of second network

oh go devs

no dashes

get some logs

chmod everybody

chmod polkadot

sleep before checking status of parachains

add BenchmarkHelper on mock::Test

query PARA_HOST

fix typo in script

reduced amount of blocks to wait, tested locally - ports are super ok and make READY status

wheriam

ports

no docker ...

no netstat

given same set of product, one cooks bad and one well

debug netsat

very high sleep just to debug

nohup

sleep after checks

changing step Wait until parachains are ready

don't run process compose

remove the nohup

fixing lines 132 and 133

revert v2 of actions

unify steps

relative path

avoid installing parachain-node

feature flag BenchmarkHelper and propagate runtime-benchmarks

feature flag BenchmarkHelper and propagate runtime-benchmarks

only one relaychain to rule them all

update url of static server

remove unsafe_cast_to_jsonrpsee_client

update the timestamp

fix build.

Revert "fix build."

This reverts commit 8cfb09d.

Revert "update the timestamp"

This reverts commit 2059cf3.

final fix for extrinsic tests

remove unsafe_cast_to_jsonrpsee_client

compilation issue

fix keystore

fix weight decoding

key is compact u32

increase timeouts

update ports on zombienet

output stack trace on fail

debug

* making sure using same compiler locally and on remote

* ignore nix files

* add more logs to timeout

* Revert "add more logs to timeout"

This reverts commit 0c7ff09.

* Revert "Merge remote-tracking branch 'origin/upgrade-polkadot-0.9.43' into polkadot-43-nonce-issue"

This reverts commit e187ca6.

* try with trusted_justification

* Fix invalid voters number when submit misbehaviour  (#419)

remove relaychain authorities because zombie net run only Alice and Bob

* use not parallel execution for integration tests parachain <> parachain

* use not parallel execution for integration tests parachain <> parachain

* add logic to resubmit tx if it did not include in block by some reason

* remove unnecessary code

* exclude ibc_messaging_packet_timeout_on_channel_close to check others

* exclude ibc_channel_close

* should pass

* add changes to test issue with 2 tests that works separately but...

* ibc_channel_close <>  ibc_messaging_packet_timeout_on_channel_close

* ibc_messaging_packet_timeout_on_channel_close works alone. failed with .

* use subxt version 0.29.0 to fix nonce issue.

* revert fix - encode subxt extrinsic and use the same test as in master

---------

Signed-off-by: dzmitry-lahoda <dzmitry@lahoda.pro>
Co-authored-by: Blas Rodriguez Irizar <rodrigblas@gmail.com>
Co-authored-by: Vladislav Markushin <negigic@gmail.com>
Co-authored-by: dzmitry-lahoda <dzmitry@lahoda.pro>
Co-authored-by: Robert Jonczy <robert.jonczy@gmail.com>
Co-authored-by: Diego Forziati <diego.forziati@nimbux911.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants