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

Bump polkadot node version #1617

Merged
merged 8 commits into from
Jan 12, 2024

Conversation

xermicus
Copy link
Contributor

Upgrade the Polkadot node. In recent versions, the node (in debug mode) logs any API calls and their results to debug buffer on its own. Because this feature was only relevant in the Polkadot target, I 🪓 it.

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
…dot where the runtime now logs the API calls and return codes

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus xermicus marked this pull request as ready for review January 10, 2024 12:06
Copy link

codecov bot commented Jan 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (00bcabb) 88.44% compared to head (1b266ec) 88.43%.

❗ Current head 1b266ec differs from pull request most recent head c65de5a. Consider uploading reports for the commit c65de5a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1617      +/-   ##
==========================================
- Coverage   88.44%   88.43%   -0.02%     
==========================================
  Files         150      150              
  Lines       68322    68200     -122     
==========================================
- Hits        60429    60311     -118     
+ Misses       7893     7889       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -3,6 +3,7 @@ import { weight, createConnection, deploy, transaction, aliceKeypair, daveKeypai
import { ContractPromise } from '@polkadot/api-contract';
import { ApiPromise } from '@polkadot/api';


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

random line add

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

log_return_code(binary, "seal_get_storage", exists);

let exists = binary.builder.build_int_compare(
let condition = binary.builder.build_int_compare(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exists was supposed to mean "does the key exist". condition is not very clear

src/emit/polkadot/target.rs Outdated Show resolved Hide resolved
log_return_code(binary, "seal_get_storage: ", exists);

let exists = binary.builder.build_int_compare(
let condition = binary.builder.build_int_compare(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exists was supposed to mean "does the key exist". condition is not very clear

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus xermicus merged commit 0f032dc into hyperledger:main Jan 12, 2024
11 checks passed
@xermicus xermicus deleted the bump-polkadot-node-version branch January 12, 2024 09:25
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.

None yet

3 participants