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

Feat/PLMC-420: All extrinsics failing on new testing node #153

Merged

Conversation

JuaniRios
Copy link
Contributor

Set the block to zero after the genesis build of pallet-funding, so transactions are queued at the start of the blockchain, instead of automatically rejected.

If this isn't merged, transactions are still possible, but we need to wait until the collator is overriding the block number

Copy link

linear bot commented Jan 24, 2024

PLMC-420 All extrinsics failing on new testing node

"Transaction has an ancient birth block"

@JuaniRios JuaniRios merged commit da9d1ee into main Jan 24, 2024
@JuaniRios JuaniRios deleted the feature/plmc-420-all-extrinsics-failing-on-new-testing-node branch January 24, 2024 13:16
vstam1 added a commit that referenced this pull request Jan 30, 2024
move to holds and freezes for election pallet

fix test

add pallets to base

add democracy pallet

set correct Governance config items

remove migrations

add test + default fast-gov

change fast-gov to fast-mode

add instant-mode

add gov tests

fmt

license changes + readme mentions

updated config items

Feat/enable staking (#143)

* chore: add the bootnodes to the production chain-spec

* chore: bump the CLI version

* feat: update Dockerfile

* feat: enable staking and disable normal vesting

* Update Dockerfile to copy polimec-raw-chain-spec.json to /data directory

Feature/plmc 350 setup offchain worker for price injection with first usdxusd (#118)

* basic setup for kraken fetcher

* add crypto to offchain worker

* add membership

* check for membership

* add multiple sources

* add full flow + first test

* add coinbase source

* address feedback + fix warnings

* fmt

* add ocw pallet to base runtime

* remove oracle from base

* add ocw pallet to test runtime

* wip

* wip

* chore: Update dependencies in Cargo.toml

* fix runtime

* node builds

* test in zombienet

* ignore bin

* fmt

* update calculations

* add ocw to base runtime and fix try-runtime feature prop

* requested changes

* fmt

---------

Co-authored-by: Leonardo Razovic <[email protected]>

Feature/plmc 391 allow parallel instantiaton of projects (#130)

* feat(287): parachain information discovery and channel opening

automatic hrmp connection working

Genesis instantiator usage and first draft of HRMP connection

formatting

feature propagation

cleanup

new node functioning. genesis not yet sure if working

new node functioning. genesis not yet sure if working

somehow compiling and test passing

save

save

save

feat(287): para_id setting extrinsic implemented and tested

save

same log crate across workspace

same log crate across workspace

save

save

save

feat(287): changed tight couple of pallet_xcm by extracting sender trait

feat(287): first commit

feat(285): POC Hrmp automatic acceptance

* first commit

* save

* penpal local fork

* save

* save

* save

* HRMP establishment successfully mocked!

* pallet-funding tests fixed

* migration check working

* fixes

* add cargo lock

* dmp fix

* formatting

* small fixed

* fixes

* save

* compiling, unit converion to map

* revert staking changes

* saving now evaluation reward and move to u64 for migration

* save

* save

* migration is successfully sent and reflected in the system

* vesting scheduling working in polimec-receiver

* save: starting to implement transact response, but we need to store a new map of query id -> unconfirmed transactions

* save

* Migration for a single user working fully and tested

* Everything works!

* pallet_funding test broken currently

* bug found in evaluation unbonding by cleaner. Still an infinite loop bug remaining

* all bugs squashed B)

* need to find a way to generate function from a new macro

* need to find a way to generate function from a new macro

* e2e tests successfully adapted to the xcm emulator

* Testnet now using Oracle, and e2e successfully passing.

* not all xcmp messages being received

* save

* cleanup

* fmt

* fixes

* save

* limiting 5 migrations per block works

* fmt

* save

* back to normal migration without bundling per block, now works for some reason

* final commit

* first commit

* ct migration tests refactor

* stable

* using generate_accounts! macro in all integration tests

* wip

* big refactor

* almost there

* working

* final changes

* tests passing

* multiple projects test passing.
Big bug found with ever-increasing running times
Failing test for release of ct deposit on failed project

* state machine intergration for releasing deposit

* starting to fix last tests

* only evaluation automatic release working.
`bids_and_community_and_remainder_contribution_plmc_bonded_is_returned_automatically_on_funding_fail` failing because of this

* state machine fixed where it only worked on evaluations

* broken tests

* save

* manual and automatic ct mint tests now passing. Removed the specific ones for just bids/evals/contr. and merged them all into 1 for manual and one for automatic

* fixed most tests. Bid calculation function not working as intended now

* benchmark tests passing

* fmt. real benchmarks run successfully

* save

* fixes

* remove unnecessary time advancement in project creation

* MVP!

* multiple community projects can be parallelized

* all async creation functions working

* bid refund test not passing

* fixed

* projects meeting together at the desired state (they start at different points automatically)

* save

* fixed tests. they were failing due to debug durations not disabled

* traits broken :(

* save

* conditionally adding genesis config

* Fixed the externalities issue by using the single threaded tokio runtime. added check for asking more remainder CT buys that are available

* removed conditional instantiator fields and conditional genesis config on pallet-funding.

* fixes

* trying to remove Sync and Send traits

* trying to have one genesis config

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* build-spec working but some logic in instantiator is failing bids

Signed-off-by: Juan Ignacio Rios <[email protected]>

* node instantiation confirmed to be working, and a test was written in integration-tests

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix: fmt

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix tests

Signed-off-by: Juan Ignacio Rios <[email protected]>

* merge fixes

Signed-off-by: Juan Ignacio Rios <[email protected]>

* new test

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove testing-node feature

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove cargo-expand-visible feature and unused modular genesis_config.rs

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove unused mut #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove unused mut #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* TODO added #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove unused old genesis builder #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove else statement #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove commented out lines #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove AccountList and use same pattern as other functions #130 (comment).

Signed-off-by: Juan Ignacio Rios <[email protected]>

* updated comment on Expendable reason
#130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix: could not compile pallet-funding alone due to missing `default = ["std"]"` in Cargo.toml

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix testnet runtime, bad merge with main

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix import

Signed-off-by: Juan Ignacio Rios <[email protected]>

* add unwrap() to advance_time

Co-authored-by: Leonardo Razovic <[email protected]>

* fix imports from Leo's PR comment #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

---------

Signed-off-by: Juan Ignacio Rios <[email protected]>
Co-authored-by: Leonardo Razovic <[email protected]>

Feature/plmc 413 fix existing benchmarks (#146)

* feat(287): parachain information discovery and channel opening

automatic hrmp connection working

Genesis instantiator usage and first draft of HRMP connection

formatting

feature propagation

cleanup

new node functioning. genesis not yet sure if working

new node functioning. genesis not yet sure if working

somehow compiling and test passing

save

save

save

feat(287): para_id setting extrinsic implemented and tested

save

same log crate across workspace

same log crate across workspace

save

save

save

feat(287): changed tight couple of pallet_xcm by extracting sender trait

feat(287): first commit

feat(285): POC Hrmp automatic acceptance

* first commit

* save

* penpal local fork

* save

* save

* save

* HRMP establishment successfully mocked!

* pallet-funding tests fixed

* migration check working

* fixes

* add cargo lock

* dmp fix

* formatting

* small fixed

* fixes

* save

* compiling, unit converion to map

* revert staking changes

* saving now evaluation reward and move to u64 for migration

* save

* save

* migration is successfully sent and reflected in the system

* vesting scheduling working in polimec-receiver

* save: starting to implement transact response, but we need to store a new map of query id -> unconfirmed transactions

* save

* Migration for a single user working fully and tested

* Everything works!

* pallet_funding test broken currently

* bug found in evaluation unbonding by cleaner. Still an infinite loop bug remaining

* all bugs squashed B)

* need to find a way to generate function from a new macro

* need to find a way to generate function from a new macro

* e2e tests successfully adapted to the xcm emulator

* Testnet now using Oracle, and e2e successfully passing.

* not all xcmp messages being received

* save

* cleanup

* fmt

* fixes

* save

* limiting 5 migrations per block works

* fmt

* save

* back to normal migration without bundling per block, now works for some reason

* final commit

* first commit

* ct migration tests refactor

* stable

* using generate_accounts! macro in all integration tests

* wip

* big refactor

* almost there

* working

* final changes

* tests passing

* multiple projects test passing.
Big bug found with ever-increasing running times
Failing test for release of ct deposit on failed project

* state machine intergration for releasing deposit

* starting to fix last tests

* only evaluation automatic release working.
`bids_and_community_and_remainder_contribution_plmc_bonded_is_returned_automatically_on_funding_fail` failing because of this

* state machine fixed where it only worked on evaluations

* broken tests

* save

* manual and automatic ct mint tests now passing. Removed the specific ones for just bids/evals/contr. and merged them all into 1 for manual and one for automatic

* fixed most tests. Bid calculation function not working as intended now

* benchmark tests passing

* fmt. real benchmarks run successfully

* save

* fixes

* remove unnecessary time advancement in project creation

* MVP!

* multiple community projects can be parallelized

* all async creation functions working

* bid refund test not passing

* fixed

* projects meeting together at the desired state (they start at different points automatically)

* save

* fixed tests. they were failing due to debug durations not disabled

* traits broken :(

* save

* conditionally adding genesis config

* Fixed the externalities issue by using the single threaded tokio runtime. added check for asking more remainder CT buys that are available

* removed conditional instantiator fields and conditional genesis config on pallet-funding.

* fixes

* trying to remove Sync and Send traits

* trying to have one genesis config

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* build-spec working but some logic in instantiator is failing bids

Signed-off-by: Juan Ignacio Rios <[email protected]>

* node instantiation confirmed to be working, and a test was written in integration-tests

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix: fmt

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix tests

Signed-off-by: Juan Ignacio Rios <[email protected]>

* merge fixes

Signed-off-by: Juan Ignacio Rios <[email protected]>

* new test

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove testing-node feature

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove cargo-expand-visible feature and unused modular genesis_config.rs

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove unused mut #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove unused mut #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* TODO added #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove unused old genesis builder #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove else statement #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove commented out lines #130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove AccountList and use same pattern as other functions #130 (comment).

Signed-off-by: Juan Ignacio Rios <[email protected]>

* updated comment on Expendable reason
#130 (comment)

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix: could not compile pallet-funding alone due to missing `default = ["std"]"` in Cargo.toml

Signed-off-by: Juan Ignacio Rios <[email protected]>

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix linear-release benchmarks

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix staking benchmarks and add optional compilation for externalities on instantiator

Signed-off-by: Juan Ignacio Rios <[email protected]>

* pallet_funding benchmarks fixed.

Signed-off-by: Juan Ignacio Rios <[email protected]>

* uncommented integration-tests. Had to do it to compile workspace with `runtime-benchmarks`

Signed-off-by: Juan Ignacio Rios <[email protected]>

* all benchmarks running to completion

Signed-off-by: Juan Ignacio Rios <[email protected]>

* save

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix testnet runtime, bad merge with main

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fix import

Signed-off-by: Juan Ignacio Rios <[email protected]>

* fixed staking benchmarks

Signed-off-by: Juan Ignacio Rios <[email protected]>

* cleanup

Signed-off-by: Juan Ignacio Rios <[email protected]>

* uncomment integration-tests

Signed-off-by: Juan Ignacio Rios <[email protected]>

* remove pallet_funding dependency from linear-release

Signed-off-by: Juan Ignacio Rios <[email protected]>

---------

Signed-off-by: Juan Ignacio Rios <[email protected]>

Add custom migrations for OracleProvidersMembership (#147)

* Add custom migrations for OracleProvidersMembership

* fix: fat fingers

* chore: bump version

* fix: workspace compilation was failing due to using conditional compilation inside `parameter_types!`

Signed-off-by: Juan Ignacio Rios <[email protected]>

---------

Signed-off-by: Juan Ignacio Rios <[email protected]>
Co-authored-by: Juan Ignacio Rios <[email protected]>

Feature/plmc 417 Update docs (#150)

* chore: align license headers

* docs: update README

* chore: update headers

* chore: align toml files

* chore: fix more header

Chore/optimize size (#151)

* chore: strip debuginfo

* chore: disable logging when we build the production runtime

* chore: zepter format the tomls

set block number back to 0 at the end of pallet_funding genesis (#153)

Signed-off-by: Juan Ignacio Rios <[email protected]>

chore: add helikon bootnodes (#152)

fix integration tests

add locking period to elections phragmen

add default members cargo config and fix benchmark tests

add test + remove try-runtime + benchmarks from integration tests
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