profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/koushiro/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

koushiro/async-jsonrpc 11

An async JSON-RPC 2.0 crate written in Rust.

koushiro/bip0039-rs 8

Another Rust implementation of BIP-0039 standard.

koushiro/flvparse 6

A FLV format parsing library written in Rust with nom.

koushiro/pbar 3

A terminal progress bar written in Rust.

koushiro/resume 3

:space_invader: My resume / 我的简历

koushiro/xlib 1

a lightweight and generic C99 library.

PolkaX/rust-cid 1

CID in rust

koushiro/arrow-datafusion 0

Apache Arrow DataFusion and Ballista query engines

koushiro/async-raft 0

An implementation of the Raft distributed consensus protocol using the Tokio framework.

koushiro/databend 0

An elastic and reliable Cloud Warehouse, offers Blazing Fast Query and combines Elasticity, Simplicity, Low cost of the Cloud, built to make the Data Cloud easy

push eventkoushiro/sqlparser-rs

Guillaume Balaine

commit sha d498887a5d1eb3016ccc6e8914b965042d672140

Enable map access for numbers, multiple nesting levels (#356) * enable integer keys for map access * enable map access for number keys * Add tests for string based map access * MapAccess: unbox single quoted strings to always display double quoted strings for map access * cargo fmt * cargo clippy * Fix compilation with nostd by avoiding format! * fix codestyle Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>

view details

koushiro

commit sha 9d27422da385fbf10ca86ba1329e1501b8ce383e

Merge remote-tracking branch 'upstream/main' into move-keywords

view details

push time in an hour

push eventkoushiro/substrate

Qinxuan Chen

commit sha 68e34234bc0a00b380e53ad8b21cf3ac47f82628

beefy-gadget-rpc: fix toml warnings (#9854) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

koushiro

commit sha 138cd50e09adf06da9358212bd9e50a9335378cf

Merge remote-tracking branch 'upstream/master' into migrate-session

view details

koushiro

commit sha 571b63437272b64e699075a6612c21e4fa973880

Fix Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

push time in a day

delete branch koushiro/substrate

delete branch : fix-toml-warning

delete time in a day

push eventkoushiro/substrate

Guillaume Thiolliere

commit sha 435f56edc14a3a7e895ff5370f6e5179dc547cc4

Implement a `CountedStorageMap` (#9125) * initial impl * expose in pallet_prelude * temp test * Apply suggestions from code review Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> * implement with macro help. * test for macro generation * add iterable functions, some test and fixes * fix merge * doc * Update frame/support/src/storage/types/counted_map.rs Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * fix merge * fmt * fix spelling * improve on removal * fix partial storage info * fmt * add license * suggested renames * fix typo * fix test * fmt * fix ui tests * clearer doc * better doc * add metadata test Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com>

view details

Shawn Tabrizi

commit sha d67e5f4a8d27206c7b473fa6a9218c1a34ffa29b

Fix Spellcheck for Template (#9795)

view details

Roman

commit sha 25eb7ac459211d8f06a98713d9ef60a4f7dd6b69

Reduce the number of types in build_transport for transport (#9793)

view details

Shawn Tabrizi

commit sha 95a5337c33ff6123918720ef3c11493628bca5b9

Add Force Unreserve to Balances (#9764) * force unreserve * add benchmark * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <admin@parity.io>

view details

Sergejs Kostjucenko

commit sha 88b4fc861129b63b445492e3088d7f12382f0128

Fix buildah login (#9786)

view details

Zeke Mostov

commit sha c000780dba99a611fadbf83873073e024be1be0b

Implement `pallet-bags-list` and its interfaces with `pallet-staking` (#9507) * remove extra whitespace Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * only emit rebag event on success * add doc explaining the term voter * revamp/simplify rebag test * ensure genesis accounts are placed into the correct nodes/bags * bond_extra implicitly rebags * types at top; doc public type * start sketching out adjustable thresholds * add integrity test for voter bag threshold requirements * get rid of BagIdx This reorganizes bag storage such that bags are always referred to by their upper threshold. This in turn means that adding and removing bags is cheaper; you only need to migrate certain voters, not all of them. * implement migration logic for when the threshold list changes * start sketching out threshold proc macros * further refine macro signatures * WIP: implement make_ratio macro * start rethinking the process of producing threshold lists The macro approach seems to be a non-starter; that only really works if we're throwing around numeric literals everywhere, and that's just not nice in this case. Instead, let's write helper functions and make it really easy to generate the tables in separate, permanent files, which humans can then edit. * write helper functions to emit voter bags module * WIP: demo generating voter bags for a realistic runtime This isn't yet done, becuase it seems to take a Very Long Time to run, and it really shouldn't. Need to look into that. Still, it's a lot closer than it was this morning. * rm unnecessary arg_enum * fix voter bags math Turns out that when you're working in exponential space, you need to divide, not subtract, in order to keep the math working properly. Also neaten up the output a little bit to make it easier to read. * add computed voter bags thresholds to node * fixup some docs * iter from large bags to small, fulfuilling the contract * make tests compile * add VoterBagThresholds to some configs * ensure that iteration covers all voters even with implied final bag * use sp_std::boxed::Box; * fix unused import * add some more voter bags tests * file_header.txt * integrity test to ensure min bag exceeds existential weight * add more debug assertions about node list length * rm unused imports * Kian enters * Update frame/election-provider-support/src/onchain.rs Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * Suggestions for #9081 (Store voters in unsorted bags) (#9328) * Add some debug asserts to node::get and remove_node * Improve the debug asserts in remove_node * improve debug asserts * Space * Remove bad assertions * Tests: WIP take_works * Take test * Doc comment * Apply suggestions from code review Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Test storage is cleaned up; * formatting * Switch to simpler thresholds * Update the storage cleanup test * Remove hardcoded values from benchmark to make it more robust * Fix tests to acces bags properly * Sanity check WIP; tests failing * Update sanity checks to be more correct * Improve storage cleanup tests * WIP remote_ext_tests * Some notes on next steps * Remove some stuff that was for remote-ext tests * Some more cleanup to reduce diff * More :clean: * Mo cleanin * small fix * A lot of changes from kian Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: kianenigma <kian@parity.io> * merge fallout * Run cargo +nightly fmt * Fix a bunch of stuff, remove not needed runtime arg of make-bags * add logs * Glue the new staking bags to the election snapshot (#9415) * Glue the new staking bags to the election snapshot * add CheckedRem (#9412) * add CheckedRem * fix * Run fmt * Test comment Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> Co-authored-by: emostov <32168567+emostov@users.noreply.github.com> * Update node runtime with VoterSnapshotPerBlock * Unit test for pallet-staking unsorted bags feature (targets #9081) (#9422) * impl notional_bag_for_works * Add tests: insert_as_works & insert_works * Impl test: remove_works * Trivial cleaning * Add test: update_position_for_works * Write out edge case; probably can delete later * Add test: bags::get_works * Add test: remove_node_happy_path_works * Add test: remove_node_bad_paths_documented * WIP: voting_data_works * done * Improve test voting_data_works * Add comment * Fill out test basic_setup_works * Update: iteration_is_semi_sorted * Improve remove_works * Update update_position_for_works; create set_ledger_and_free_balance * Improve get_works * Improve storage clean up checks in remove test * Test: impl rebag_works + insert_and_remove_works * forgot file - Test: impl rebag_works + insert_and_remove_works * Small tweak * Update voter_bags test to reflect unused bags are removed * Unbond & Rebond: do_rebag * Prevent infinite loops with duplicate tail insert * Check iter.count on voter list in pre-migrate * undo strang fmt comment stuff * Add in todo Co-authored-by: kianenigma <kian@parity.io> * Try prepare for master merge * Reduce diff * Add comment for test to add * Add in code TODO for update_position efficiency updates * Initial impl compiles * impl StakingVoterListStub * Sample impl<T: Config> VoterListProvider<T> for VoterList<T> * impl VoterListProvider for voter-bags * WIP integrate pallet-voter-bags to staking mock * the trait `pallet_staking::pallet::pallet::Config` is not implemented for `mock::Test` * random * pushing my stuff * Mock working * WIP voter list tests * Add bag insert, remove tests * Add test for bag insert and remove * Add remaining tests for VoterList * Add tests for node * Add rebag works * Add rebag extrinsic tests * Rename to bags-list and name the list .. list! * Rename VoterBagThresholds => BagThresholds * Add test count_works * Test on_update_works * test sanity check * a round of test fixes * push a lot of changes * my last changes * all bags-list test work; fmt * Beautify some tests * Doc comment for bags-list * Add insert warnings * Setup initial benchmark * Wire up WeightInfo * is_terminal wip; everything broken! * Is terminal working * add TODOs for remove_node * clean up remoe_node * Fix all staking tests * retire VoterBagFor * commit * bring in stashed changes * save * bench pipeline works now, but I can't run stuff * sabe * benchmarks now run, but we have a failure * WIP: Wire up make_bags * bags-thresholds compiles * Fix most build issues * This will fix all the tests * move bag thresholds to bags-list * Move bag-thresholds bin to within pallet-bags * Remove some unnescary TODOs * Impl tets wrong_rebag_is_noop * assert remove is a noop with bad data * Assert integrity test panics * Return an error when inserting duplicates * Update to handle error in staking pallet when inserting to list * Test contains and on_insert error * Test re-nominate does not mess up list or count * Everything builds and works, only the benchmark... * fuck yeah benchmarks * more cleanup, more hardening. * use the bags list again * fix benhc * Some questions and changs for List::migration * Fix migration removed_bags and new_bags usage * Some trivial aesthetic changes * Some more trivial changes * tiny changes/ * mega rename * fix all tests and ci build * nit * Test and fix migration * nit * fmt * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fmt * remove unused * make a few things pub * make node also pub.. for remote-ext test * Fix all tests again * Force bag changes in relevant benchmarks (targets #9507) (#9529) * force rebag for unbond, rebond, and bond_extra * nit * Improve utils * fmt * nits * Move generate_bags to its own pallet * Get runtime-benchmarks feature setup with prepare_on_update_benchmark * Withdraw unbonded kill working * Nominate bench working * some cleanup * WIP * update to check head pre & post conditions * Add some post condition verification stuff for on_remove * Update nominate * fmt * Improvements * Fix build * fix build with polkadot companion * Update frame/bags-list/src/list/tests.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * move generate-bag from frame to utils * wip * refactor WIP * WIP save * Refactor working * some variable renaming * WIP: prepare to remove head checks * Finish MvP refactor * Some cleanup * Soem more cleanup * save * fix a lot of stuff * Update client/db/src/bench.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Apply suggestions from code review * Apply suggestions from code review * Fix some issues that came from trying to merge comments on github * some small changes * simplify it Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Build works * Apply suggestions from code review Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * Apply suggestions from code review Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * Remove commented out debug assert * Remove some unused deps and some unused benchmarking stuff * Fix stakings ElectionDataProvider clear * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Improving staking pallet-bags-list migration * fix build and some comments; * comment * Reduce visibility in bags list components * make node.bag_upper only accesible to benchmarks * Address some feedback; comments updates * use nominator map comment * fix vec capacity debug assert * Apply suggestions from code review Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * clarify VoterSnapshotPerBlock * Reduce diff on create_validators by wrapping with_seed * Some small improvements to staking benches * Soem comment updates * fix vec capacity debug assert ... for real this time * Reduce ListBags viz * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Remove supports_eq_unordered & Support eq_unordered * Update utils/frame/generate-bags/src/lib.rs Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * Make total-issuance & minimium-balance CLI args; Dont use emptry ext * Improve docs for generate bags CLI args * Apply suggestions from code review Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Don't use default bags weight in node runtime * Feature gating sanity_check not working * Feature gate sanity check by creating duplicate fns * Fix line wrapping * Document VoteWeightProvider * Make bags ext-builder not a module * Apply suggestions from code review Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * use pallet_bags_list instead of crate in mock * Make get_bags test helper fn live in List * use remove_from_storage_unchecked for node removal * Remove count of ids removed in remove_many * Add node sanity check, improve list sanity check * Do a list sanity check after on_update * List::migrate: clean up debug assert, exit early when no change in thresholds * Improve public doc comments for pallet_bags_list::list::List * Improve public doc comments for pallet_bags_list::list::List * Update generate bags docs * Fix grammar in bags-list benchmark * Add benchmark case for `rebag` extrinsic * Add count parameter to List::clear; WIP adding MaxEncodedLen to list' * MaxEncodeLen + generate_storage_info not working for Bag or Node * Get MaxEncodeLen derive to work * Try to correctly feature gate SortedListProvider::clear * Use u32::MAX, not u32::max_value * Get up to nominators_quota noms * SortedListProvider::clear takes an Option * Eplicitly ignore SortedListProvider return value * Fix doc comment * Update node-runtime voter snapshot per block * Add test get_max_len_voters_even_if_some_nominators_are_slashed * Add test only_iterates_max_2_times_nominators_quota * Fix generate bags cargo.toml * use sp_std vec * Remove v8 migration hooks from pallet-staking * Update npos trait * Try respect line width * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/bags-list/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Update frame/bags-list/src/benchmarks.rs * Unwrap try-runtime error; remove sortedlistprovider pre upgrade len check * trigger ci * restore * trigger ci * restore * trigger ci * revert * trigger ci * revert Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> Co-authored-by: Parity Benchmarking Bot <admin@parity.io> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>

view details

Xiliang Chen

commit sha 91b386ff07a85b3dd50ff3ed29c97e6b29d15f05

make nonce public (#9810)

view details

Jimmy Chu

commit sha 58256613b50e6b3dc4dd6e20b463df0435104bb9

Added template and scripts for generating rustdocs (#9785) Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>

view details

Georges

commit sha e30db04a7ec3b259e66d7b0334e42e538ed69b96

Generate storage info for pallet im_online (#9654) * Integrating WrapperOpaque from PR #9738 * Adding storage_info to pallet im-online Changing some `Vec` to `WeakBoundedVec` Adding the following bounds: * `MaxKeys * `MaxPeerInHeartbeats` * `MaxPeerDataEncodingSize` to limit the size of `WeakBoundedVec` * Fix syntax * Need to clone keys * Changes in formatting

view details

Guillaume Thiolliere

commit sha 50c84cb8f92b6446b4a7b3043684b116aaea6866

add feature and fix ci (#9800)

view details

Roman

commit sha 0997854ccfd977783591f40f93cd0294e51c3631

Don't answer peers with a low reputation (#9008) * Init architecture for not answering peers with a low reputation * Get reputation inside of RequestResponsesBehaviour::poll * Filter reputation in RequestResponsesBehaviour * Pass PeersetHandle to RequestResponsesBehaviour * Add more docs * Fix tests compilation * Fix compiler warnings (still FIXME) * Fix tests * Fmt code

view details

Squirrel

commit sha 3486a134e826f115907dcbb1b65d4eb422505b6f

check line width not needed (#9820) * check line width not needed (cargo fmt checks this) * Fixing test to work in release mode.

view details

Guillaume Thiolliere

commit sha ce3c31f2bfa7e10817a8a0833faddeaee818910d

Improve post and pre migration checks for pallet-membership (#9746) * improve post and pre migration checks * prevent some more false positive * prevent another false positive * fix unused import * Apply suggestions from code review

view details

ferrell-code

commit sha 78ce06139243df5fbbf85356a754e6c97ec7cb9c

Bounties Pallet to FrameV2 (#9566) * migrate bounties pallet * events in tests * test import event * Update frame/bounties/src/lib.rs Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> * cargo fmt * line width * benchmarks compile * add migrations * fmt * comments * mod migrations * fix Cargo.toml * never remember cargo fmt * fix migration * migrations and test * change checks in migration * remove unused values * Update frame/bounties/src/migrations/v4.rs * cargo fmt * fix benchmarking * trigger ci Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>

view details

Pierre Krieger

commit sha 700c9e2a476f94438f653423c23b9f0332dbd708

Silence Kademlia InboundRequestServed event (#9797) Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com>

view details

Kian Paimani

commit sha 04bb4e02137f7aba9c20be071bcf9ba6bceaf8da

`follow-chain` testing mode for try-runtime (and revamp CLI configs). (#9788) * deadlock, need to ask someone to help now * Finally it seems to be working.. at least for a few blocks * self-review * major mega revamp * some small fixes * another mega refactor * add license * Apply suggestions from code review * hack around signature verification * Some fixes * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com> * final tweaks, hopefully. * a little self-review * Add the ext root check Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com>

view details

Alexander Popiak

commit sha da6094d286cca99a9bc5acb2412341280e3828ab

Pull Request Template Suggestions (#9717) * pull request template suggestions * Update docs/PULL_REQUEST_TEMPLATE.md Co-authored-by: Squirrel <gilescope@gmail.com> Co-authored-by: Squirrel <gilescope@gmail.com> Co-authored-by: thiolliere <gui.thiolliere@gmail.com>

view details

ferrell-code

commit sha 0a18fa066c781aa12ae57803759a5dec317b2e5c

Society Pallet to FrameV2 (#9472) * migrate society * remove unused imports * cargo fmt * trigger ci * pass new ci * Apply suggestions from code review * fmt * regression bench ci? * remove metadata, fixed with typing! Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: charlesferrell <charlie@laminar.one>

view details

Georges

commit sha 49e91e2f2390fda92e41726c2fb728cd778e7631

Adding storage_info to pallet grandpa (#9817) Converting some `Vec` to `WeakBoundedVec` Adding `MaxAuthorities` type to bound the `WeakBoundedVec` Co-authored-by: thiolliere <gui.thiolliere@gmail.com>

view details

Kian Paimani

commit sha 136120674703bf5541ee2368ebb330d803b61cce

Use the automated call decode weight for `submit_unsigned` benchmark (#9766) * Use the automated call decode weight for benchmark * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * reduce the boundaries * Fix * Fox * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * reduce the numbers even less * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Fix a few things * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * update comment Co-authored-by: Parity Bot <admin@parity.io>

view details

push time in a day

PR opened paritytech/substrate

beefy-gadget-rpc: fix toml warnings

Signed-off-by: koushiro koushiro.cqx@gmail.com

+1 -1

0 comment

1 changed file

pr created time in a day

create barnchkoushiro/substrate

branch : fix-toml-warning

created branch time in a day

push eventkoushiro/substrate

ddorgan

commit sha bc43ad44618ba8757fc280c0bb79ddce9228f62f

Make some alerts warnings instead of critical (#8739)

view details

Alexander Popiak

commit sha 9df2f1029edf00b66429579960653cdffa9625fa

derive Encode and Decode for BigUint (#8744)

view details

Peter Goodspeed-Niklaus

commit sha 06e10c6d487b20d2e411c0681fd63e98c9537006

BoundedVec MaxEncodedLen microoptimization (#8746)

view details

Veniamin

commit sha 19f732797701fa8fe2e357b397c2bec09e15509b

equilibrium added ss58 prefix (#8342) Co-authored-by: Veniamin <benjamin@eosdt.com>

view details

Peter Goodspeed-Niklaus

commit sha f78e1edd3aef25bd6eb9a872e9bdb6b542076df3

Add `BoundedBTreeMap` to `frame_support::storage` (#8745) * Add `BoundedBTreeMap` to `frame_support::storage` Part of https://github.com/paritytech/substrate/issues/8719. * max_encoded_len will never encode length > bound * requiring users to maintain an unchecked invariant is unsafe * only impl debug when std * add some marker traits * add tests

view details

Pierre Krieger

commit sha 462653636821f542fd99beed25e817b7f14c38c9

Allow fallback names for protocols (#8682) * Allow fallback names for protocols * Apply suggestions from code review Co-authored-by: Roman Proskuryakov <humbug@deeptown.org> * Fix some issues * Fix compilation after merging master Co-authored-by: Roman Proskuryakov <humbug@deeptown.org>

view details

Bastian Köcher

commit sha 75957575080a6eacfbdf8995b63f2693ee33efe6

Fix the calculation of the time until the next slot (#8753) * Fix the calculation of the time until the next slot * Update client/consensus/slots/src/slots.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

view details

Peter Goodspeed-Niklaus

commit sha a1eaececfd60c7c763d418a015804804604c22d4

`#[derive(MaxEncodedLen)]` (#8737) * impl #[derive(MaxEncodedLen)] for structs * impl #[derive(MaxEncodedLen)] for enums, unions * break long comments onto multiple lines * add doc for public item * add examples to macro documentation * move MaxEncodedLen macro docs, un-ignore doc-tests

view details

Alexander Theißen

commit sha d8425ae08add1895966921d46f8989c310d08c03

contracts: Refactor the exec module (#8604) * contracts: Add default implementation for Executable::occupied_storage() * contracts: Refactor the exec module * Let runtime specify the backing type of the call stack This removes the need for a runtime check of the specified `MaxDepth`. We can now garantuee that we don't need to allocate when a new call frame is pushed. * Fix doc typo Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Review nits * Fix defect in contract info caching behaviour * Add more docs * Fix wording and typos Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Parity Benchmarking Bot <admin@parity.io>

view details

Peter Goodspeed-Niklaus

commit sha de2423492815fa60017fd7c2c14a490bcdba0441

Relax `BoundedVec` trait restrictions (#8749) * requiring users to maintain an unchecked invariant is unsafe * relax trait restrictions on BoundedVec<T, S> A normal `Vec<T>` can do many things without any particular trait bounds on `T`. This commit relaxes the bounds on `BoundedVec<T, S>` to give it similar capabilities.

view details

Shawn Tabrizi

commit sha d47d16207b6aa6f4682e056953d114eebc2ffbf6

fix spelling (#8760)

view details

Bastian Köcher

commit sha aef7eb593be1c43bf539ebfc1ac5e385d1dd1d6c

Remove unneeded trait bounds (#8765) Before we required these trait bounds because of some bug in rustc, but now as this bug is fixed they can be removed.

view details

Pierre Krieger

commit sha 0aad5b8a42f05e7d302d9342ccc9df6d0fb3f677

Two bugfixes to authority-discovery (#8768)

view details

Peter Goodspeed-Niklaus

commit sha 92a7a12bd8c813a41e6532dfe17adc75cdb8027d

Add `BoundedBTreeSet` (#8750) * Add `BoundedBTreeSet` Part of https://github.com/paritytech/substrate/issues/8719 * fix copy-pasta errors Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

view details

Shaun Wang

commit sha efd262f1a791be0a7986b25bd302338a590b46d3

Add arithmetic dispatch errors. (#8726) * Add arithmetic dispatch errors. * Replace custom overflow errors. * Replace custom underflow and division by zero errors. * Replace overflow/underflow in token error. * Add token and arithmetic errors in dispatch error equality test. * Trigger CI.

view details

Pierre Krieger

commit sha 10b9da5b6759c51ac9f9ac9bb6c4634c2e25b544

Increase the number of external IPs in cache (#8771)

view details

Shaun Wang

commit sha 3f110196163b5ec03bac5ee188d60bedf3ebd91d

Update pallet macro migrations. (#8766) * Update pallet macro migrations. * Revert dispatchable call visibility changes. * fmt

view details

Sergei Shulepov

commit sha 60eb0c69fa264dd758c91e3d81ac68ef75036b8e

Make Allocator trait pub (#8777) We need this in order to be able to assemble more fine grained host function sets. E.g. we don't want to use `SubstrateHostFunctions` for PVF. We would better whitelist certain host functions. However, we cannot do that because we cannot refer to the `Allocator` runtime interface. I have not been able to find the reason why it wasn't made `pub` in the first place, but do not see any reason why not to.

view details

Pierre Krieger

commit sha 8d1dd4295e8361f85f49a12a2983650440a300c5

Don't remove addresses from known_external_addresses (#8778) * Don't remove addresses from known_external_addresses * Remove `remove`

view details

Wei Tang

commit sha 34315dddbaf13c6282199c32e3b1a9b1b26cf4b1

pow: fix docs on mining worker (#8759) * pow: fix docs on mining worker * typo: miner -> mining * Switch to proper Rust intra-doc link

view details

push time in a day

create barnchkoushiro/substrate

branch : migrate-pallet-of-test

created branch time in a day

push eventkoushiro/async-jsonrpc

dependabot[bot]

commit sha 1665e2ddecf59ed3fa955cdf8fa66187365f4388

Update async-tungstenite requirement from 0.7 to 0.8 (#10) Updates the requirements on [async-tungstenite](https://github.com/sdroege/async-tungstenite) to permit the latest version. - [Release notes](https://github.com/sdroege/async-tungstenite/releases) - [Commits](https://github.com/sdroege/async-tungstenite/compare/0.7.0...0.8.0) Signed-off-by: dependabot[bot] <support@dependabot.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

Michael Neumann

commit sha 1c639119e8751eacf7a8bd26f624592e9a7de214

Add support for async-std via surf (#12)

view details

Qinxuan Chen

commit sha 74ff011e832d451ea60e421ea33e36ed3701d8a3

Rename some types and feature name (#13) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha a17c41997f3c669a67e58204e4acf17cbdfa7722

Develop 0.2 (#18) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 0d495d1d3d717dcfcfeafc0ccbcf4e66a05b54db

Update jsonrpc-types (#20) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 510e68990abec767eefd63761a1f90d15673a02a

Refactor websocket client (#21) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 3a3a997927e1dd254c77c5634acbfab42878231a

Release v0.2.0-beta.0 (#22) * Support `http-async-std` feature * Improve some docs Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

koushiro

commit sha 38263be6431f676cfd66ed8fde028411a68e8bc9

(cargo-release) version 0.2.0

view details

Qinxuan Chen

commit sha e27be0328d99695ea76928b2eb42b49fc435c146

Improve error handling (#23) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 8a48e9ccbab047ab0ee15b15633d9e2b5d42c8f1

Improve `PubsubTransport` (#24) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha aad93ec39d93d471ee3e4982efb814341de466f7

Publish 0.3.0-beta.0 (#25) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 9c9f756b3314b968a22735e3f11d4fc1eb916531

Enable tokio-runtime by default (#26) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha bca1cd2675bfdc90b5417eed4db9c6a5848c2959

Update async-tungstenite (#27) * update async-tungstenite to v0.13 * use curl-client for http async-std Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha d63a93bfa1fad69f1f1fa1f6a78085f056ffaf32

Publish 0.3.0-beta.1 (#28) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 7e6c6909e14b3c1e32a5b4588aa58dc3ebd52746

Reorg crates (#29) * Reorg crates * cargo fmt * Add cache for CI * Update README Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 140f9e27808049420d4ca8d487bb834467487996

Update README (#30) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha 524f0d88866ae80cbcf479c74dc84ac9770741e6

Impl From<Id> for Value (#33) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

Qinxuan Chen

commit sha ab010af7af3c72390b433be277c9847d5861184c

Bump jsonrpc-types v0.3.3 and async-jsonrpc-client v0.3.0 (#34) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

dependabot[bot]

commit sha 0f5ace547bfc9e5e77d328af47ac914d75ff91a4

Update async-tungstenite requirement from 0.13 to 0.14 (#39) Updates the requirements on [async-tungstenite](https://github.com/sdroege/async-tungstenite) to permit the latest version. - [Release notes](https://github.com/sdroege/async-tungstenite/releases) - [Changelog](https://github.com/sdroege/async-tungstenite/blob/master/CHANGELOG.md) - [Commits](https://github.com/sdroege/async-tungstenite/compare/0.13.0...0.14.0) --- updated-dependencies: - dependency-name: async-tungstenite dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

Qinxuan Chen

commit sha fea0acffbbc24515daeccb7a09305ab4e9328581

Reorg `jsonrpc-types` (#40) * Reorg jsonrpc-types modules * Add feature `v1` and feature `v2` (enabled by default) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

push time in 3 days

push eventkoushiro/async-jsonrpc

jjy

commit sha dcc97007524f42f02e4c27a8fa7fe79fb6420f49

Handle invalid response status (#45)

view details

push time in 3 days

PR merged koushiro/async-jsonrpc

Handle invalid response status

The current implementation doesn't handling non success response, If we got a non success reponse from server, http client will raise: error: expected value at line 1 column 1. This PR checks the response status code and return a reasonable error if the code isn't 200.

+7 -0

1 comment

1 changed file

jjyr

pr closed time in 3 days

PullRequestReviewEvent

push eventkoushiro/async-jsonrpc

dependabot[bot]

commit sha bcc6c6e89684947a369ba7a97d0047f6d4e9520d

Update async-tungstenite requirement from 0.14 to 0.15 (#44) Updates the requirements on [async-tungstenite](https://github.com/sdroege/async-tungstenite) to permit the latest version. - [Release notes](https://github.com/sdroege/async-tungstenite/releases) - [Changelog](https://github.com/sdroege/async-tungstenite/blob/master/CHANGELOG.md) - [Commits](https://github.com/sdroege/async-tungstenite/compare/0.14.0...0.15.0) --- updated-dependencies: - dependency-name: async-tungstenite dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

push time in 3 days

delete branch koushiro/async-jsonrpc

delete branch : dependabot/cargo/async-tungstenite-0.15

delete time in 3 days

PR merged koushiro/async-jsonrpc

Update async-tungstenite requirement from 0.14 to 0.15 dependencies rust

Updates the requirements on async-tungstenite to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/sdroege/async-tungstenite/blob/master/CHANGELOG.md">async-tungstenite's changelog</a>.</em></p> <blockquote> <h2>[0.15.0] - 2021-09-09</h2> <h3>Fixed</h3> <ul> <li>Reduce crate package size.</li> <li>Fix and clean up autobahn tests.</li> </ul> <h3>Changed</h3> <ul> <li>Update to tungstenite 0.15.</li> </ul> <h2>[0.14.0] - 2021-07-05</h2> <h3>Changed</h3> <ul> <li>Remove <code>tokio-rustls</code> feature and replace with <code>tokio-rustls-webpki-roots</code> and <code>tokio-rustls-native-certs</code> features that allow selecting the certificate checking backend.</li> <li>Add <code>verbose-logging</code> feature that enables more verbose logging via the <code>log</code> crate, which was enabled by default before.</li> <li>Update <code>gio-runtime</code> feature to glib/gio 0.14.</li> </ul> <h3>Added</h3> <ul> <li>Make <code>client_async_tls_with_connector_and_config()</code> a public function to allow creating a WebSocket connection from a <code>Stream</code>.</li> </ul> <h2>[0.13.1] - 2021-03-23</h2> <h3>Fixed</h3> <ul> <li>The connect API using the <code>tokio-openssl</code> TLS implementation was broken in previous versions as no TLS connection was established before trying to establish the WebSocket connection. As such, connections always failed. Technically this is a breaking change when using this feature but in practice this a) wouldn't have worked anyway and b) it's unlikely someone uses the API in a way that would stop compiling now.</li> </ul> <h2>[0.13.0] - 2021-02-13</h2> <h3>Changed</h3> <ul> <li>Updated to tungstenite 0.13</li> </ul> <h2>[0.12.0] - 2021-01-09</h2> <h3>Changed</h3> <ul> <li>Updated tungstenite to version 0.12</li> <li>Migrated from pin-project to pin-project-lite</li> <li><code>TokioAdapter</code> is now created via <code>TokioAdapter::new</code></li> </ul> <h2>[0.11.0] - 2020-12-30</h2> <h3>Changed</h3> <ul> <li>Updated tokio to version 1.0</li> <li>Updated async-tls to version 0.11</li> </ul> <h2>[0.10.0] - 2020-10-22</h2> <h3>Changed</h3> <ul> <li>Updated tokio to version 0.3</li> </ul> <h2>[0.9.3] - 2020-10-19</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/sdroege/async-tungstenite/commit/2cc61254117418d96f005d533b240abbd7f26629"><code>2cc6125</code></a> Update to version 0.15.0</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/ee6c24d327d2bd60ec9f0dc5d43389ba0217a30f"><code>ee6c24d</code></a> Update to tungstenite 0.15</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/e1ef88d0e3590cdd28b876dd8c4581db7d9d959e"><code>e1ef88d</code></a> Update to tungstenite 0.14 and env_logger 0.9</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/f69a7fa0350712d06a662e6e057ec01a66326b58"><code>f69a7fa</code></a> Use 127.0.0.1 in tests to avoid firewall warnings</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/714e096ae4820540ec81509df47fc507681b205d"><code>714e096</code></a> tests: fix confusing wrong paths in the scripts</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/1c9e7ea8fb26bebdb6175223b7469a85649efa55"><code>1c9e7ea</code></a> tests: use autobahn test suite as docker image</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/fcb209d6de296ac27d97736a73cfa6661d85b353"><code>fcb209d</code></a> Reduce crate package size</li> <li><a href="https://github.com/sdroege/async-tungstenite/commit/15adbdf640892db5d123f7e7ddcce9198b3e5302"><code>15adbdf</code></a> Fix formatting</li> <li>See full diff in <a href="https://github.com/sdroege/async-tungstenite/compare/0.14.0...0.15.0">compare view</a></li> </ul> </details> <br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+1 -1

2 comments

1 changed file

dependabot[bot]

pr closed time in 3 days

startedCDDSCLab/training-plan

started time in 3 days

pull request commentkoushiro/async-jsonrpc

Update async-tungstenite requirement from 0.14 to 0.15

@dependabot rebase

dependabot[bot]

comment created time in 3 days

push eventkoushiro/async-jsonrpc

Qinxuan Chen

commit sha 2f7bb56de7e26921f8edddd1ffdde00ffe186ff9

Make clippy happy (#47) Signed-off-by: koushiro <koushiro.cqx@gmail.com>

view details

push time in 3 days

PR merged koushiro/async-jsonrpc

Make clippy happy

Signed-off-by: koushiro koushiro.cqx@gmail.com

+1 -1

1 comment

1 changed file

koushiro

pr closed time in 3 days

delete branch koushiro/async-jsonrpc

delete branch : fix-clippy

delete time in 3 days

PR opened koushiro/async-jsonrpc

Make clippy happy

Signed-off-by: koushiro koushiro.cqx@gmail.com

+1 -1

0 comment

1 changed file

pr created time in 3 days

create barnchkoushiro/async-jsonrpc

branch : fix-clippy

created branch time in 3 days

pull request commentparitytech/substrate

Distinguish all tips in history according to tip hash

@thiolliere @shawntabrizi what do you think?

koushiro

comment created time in 3 days

pull request commentmultiformats/rust-multihash

Fix scale-codec for `Multihash`

would it be OK if I do a release next week? I'd like to also get #138 in if possible (if it isn't ready by next week, I'll do a release without it).

Ok, thanks!

koushiro

comment created time in 3 days

issue openedkoushiro/async-jsonrpc

Use tracing

created time in 3 days

pull request commentmultiformats/rust-multihash

Fix scale-codec for `Multihash`

@vmx Could you release a new version?

koushiro

comment created time in 3 days

delete branch koushiro/rust-multihash

delete branch : fix-scale-codec

delete time in 3 days

pull request commentmultiformats/rust-multihash

Fix scale-codec for `Multihash`

Example:

let mh1 = Multihash::<crate::U32>::wrap(Code::Sha2_256.into(), Sha2_256::digest(b"hello world").as_ref()).unwrap();

let mh3: Multihash<crate::U64> = Code::Sha2_256.digest(b"hello world");

Before:

mh1: code = 18, size = 32, digest = [185, 77, 39, 185, 147, 77, 62, 8, 165, 46, 82, 215, 218, 125, 171, 250, 196, 132, 239, 227, 122, 83, 128, 238, 144, 136, 247, 172, 226, 239, 205, 233] (0xb94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9)
Multihash<U32> scale-codec encoding: 120000000000000020b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

mh3: code = 18, size = 32, digest = [185, 77, 39, 185, 147, 77, 62, 8, 165, 46, 82, 215, 218, 125, 171, 250, 196, 132, 239, 227, 122, 83, 128, 238, 144, 136, 247, 172, 226, 239, 205, 233] (0xb94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9)
Multihash<U64> scale-codec encoding: 120000000000000020b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde90000000000000000000000000000000000000000000000000000000000000000

After:

mh1: code = 18, size = 32, digest = [185, 77, 39, 185, 147, 77, 62, 8, 165, 46, 82, 215, 218, 125, 171, 250, 196, 132, 239, 227, 122, 83, 128, 238, 144, 136, 247, 172, 226, 239, 205, 233] (0xb94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9)
Multihash<32>: 120000000000000020b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

mh3: code = 18, size = 32, digest = [185, 77, 39, 185, 147, 77, 62, 8, 165, 46, 82, 215, 218, 125, 171, 250, 196, 132, 239, 227, 122, 83, 128, 238, 144, 136, 247, 172, 226, 239, 205, 233] (0xb94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9)
Multihash<64>: 120000000000000020b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
koushiro

comment created time in 3 days

pull request commentmultiformats/rust-multihash

Fix scale-codec for `Multihash`

@vmx What do you think? Any suggestions?

koushiro

comment created time in 3 days