mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -138,7 +138,8 @@ impl core::Benchmark for ImportBenchmark {
|
||||
// should be 5 per signed extrinsic + 1 per unsigned
|
||||
// we have 1 unsigned and the rest are signed in the block
|
||||
// those 5 events per signed are:
|
||||
// - new account (RawEvent::NewAccount) as we always transfer fund to non-existant account
|
||||
// - new account (RawEvent::NewAccount) as we always transfer fund to
|
||||
// non-existant account
|
||||
// - endowed (RawEvent::Endowed) for this new account
|
||||
// - successful transfer (RawEvent::Transfer) for this transfer operation
|
||||
// - deposit event for charging transaction fee
|
||||
|
||||
@@ -78,10 +78,13 @@ fn session_keys(
|
||||
}
|
||||
|
||||
fn staging_testnet_config_genesis() -> GenesisConfig {
|
||||
#[rustfmt::skip]
|
||||
// stash, controller, session-key
|
||||
// generated with secret:
|
||||
// for i in 1 2 3 4 ; do for j in stash controller; do subkey inspect "$secret"/fir/$j/$i; done; done
|
||||
//
|
||||
// and
|
||||
//
|
||||
// for i in 1 2 3 4 ; do for j in session; do subkey --ed25519 inspect "$secret"//fir//$j//$i; done; done
|
||||
|
||||
let initial_authorities: Vec<(
|
||||
|
||||
@@ -50,7 +50,8 @@ pub fn bloaty_code_unwrap() -> &'static [u8] {
|
||||
)
|
||||
}
|
||||
|
||||
/// Default transfer fee. This will use the same logic that is implemented in transaction-payment module.
|
||||
/// Default transfer fee. This will use the same logic that is implemented in transaction-payment
|
||||
/// module.
|
||||
///
|
||||
/// Note that reads the multiplier from storage directly, hence to get the fee of `extrinsic`
|
||||
/// at block `n`, it must be called prior to executing block `n` to do the calculation with the
|
||||
@@ -721,7 +722,8 @@ fn native_big_block_import_succeeds() {
|
||||
fn native_big_block_import_fails_on_fallback() {
|
||||
let mut t = new_test_ext(compact_code_unwrap(), false);
|
||||
|
||||
// We set the heap pages to 8 because we know that should give an OOM in WASM with the given block.
|
||||
// We set the heap pages to 8 because we know that should give an OOM in WASM with the given
|
||||
// block.
|
||||
set_heap_pages(&mut t.ext(), 8);
|
||||
|
||||
assert!(executor_call::<NeverNativeValue, fn() -> _>(
|
||||
|
||||
@@ -306,8 +306,8 @@ impl<'a> Iterator for BlockContentIterator<'a> {
|
||||
BlockType::RandomTransfersReaping => {
|
||||
Call::Balances(BalancesCall::transfer(
|
||||
sp_runtime::MultiAddress::Id(receiver),
|
||||
// Transfer so that ending balance would be 1 less than existential deposit
|
||||
// so that we kill the sender account.
|
||||
// Transfer so that ending balance would be 1 less than existential
|
||||
// deposit so that we kill the sender account.
|
||||
100 * DOLLARS - (node_runtime::ExistentialDeposit::get() - 1),
|
||||
))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user