1. Aug 03, 2020
    • Bastian Köcher's avatar
      Fix transaction payment runtime api (#6792) · 02c879ec
      Bastian Köcher authored
      The transaction payment runtime api used its own extrinsic generic
      parameter. This is wrong, because this resulted in using always the
      native extrinsic. If there was a runtime upgrade that changed the
      extrinsic in some way, it would result in the api breaking. The correct
      way is to use the `Extrinsic` from the `Block` parameter. This is on the
      node side the opaque extrinsic and on the runtime side the real extrinsic.
      02c879ec
  2. Jul 31, 2020
  3. Jul 30, 2020
  4. Jul 29, 2020
  5. Jul 28, 2020
  6. Jul 27, 2020
  7. Jul 24, 2020
    • André Silva's avatar
      grandpa: allow noting that the set has stalled (#6725) · 2ec13114
      André Silva authored
      * grandpa: remove unused methods to convert digest
      
      * grandpa: add root extrinsic for scheduling forced change
      
      * grandpa: add benchmark for schedule_forced_change
      
      * grandpa: don't take authority weight in schedule_forced_change
      
      * grandpa: add const for default forced change delay
      
      * grandpa: adjust weights after benchmark on ref hardware
      
      * grandpa: fix cleanup of forced changes on standard change application
      
      * grandpa: replace schedule_forced_change with note_stalled
      
      * grandpa: always trigger a session change when the set is stalled
      
      * grandpa: fix bug on set id mutation after failed scheduled change
      
      * grandpa: take delay as parameter in note_stalled
      
      * grandpa: fix tests
      
      * grandpa: fix cleanup of forced changes
      
      * grandpa: add test for forced changes cleanup
      
      * grandpa: add test for session rotation set id
      
      * grandpa: add test for scheduling of forced changes on new session
      2ec13114
  8. Jul 23, 2020
  9. Jul 22, 2020
    • Wei Tang's avatar
      Better handling of stable-only build (#6569) · ac8de557
      Wei Tang authored
      
      
      * Better handling of stable-only build
      
      * Fix node template build
      
      * Fix wasm builder node-template version mismatch
      
      * Fix load_spec error
      
      * Add , in parameter
      
      * Add descrptive panic messages in tests
      
      * Add descriptive tests in node/executor benches
      
      * Fix missing compact_code_unwrap
      
      * Add missing wasm_binary_unwrap function for executor integration test
      
      * Only define import_sp_io in no_std
      
      * Small Cargo.toml styling fix
      
      * Bump wasm-builder to 2.0.0
      
      * Fix all `with_wasm_builder_from_crates` version in Substrate
      
      * Use `with_wasm_builder_from_crates` for node-template
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      ac8de557
  10. Jul 21, 2020
  11. Jul 20, 2020
  12. Jul 17, 2020
    • André Silva's avatar
      grandpa: report equivocations with unsigned extrinsics (#6656) · ae38a806
      André Silva authored
      * grandpa: use unsigned extrinsics for equivocation reporting
      
      * grandpa: allow signed reports as well
      
      * grandpa: change runtime api for submitting unsigned extrinsics
      
      * grandpa: fix tests
      
      * grandpa: add test for unsigned validation
      
      * grandpa: add benchmark for equivocation proof checking
      
      * offences: fix grandpa benchmark
      
      * grandpa: add proper weight for equivocation reporting extrinsic
      
      * grandpa: fix weight unit
      ae38a806
    • Gavin Wood's avatar
      Treasury burning can be directed (#6671) · 85e1f9aa
      Gavin Wood authored
      * Treasury burning can be directed
      
      Also, Society is a imbalance handler
      
      * Build
      
      * Introduce from_permill in perthings.
      
      * Rename to from_perthousand to avoid confusion with Permill
      
      * Fixes
      85e1f9aa
    • Gavin Wood's avatar
      identity: Don't let subs be re-registered (#6667) · cad18b0f
      Gavin Wood authored
      
      
      * Fixes and tests
      
      * Don't set subs be re-registered.
      
      Also allow subs to de-register themselves and collect the deposit.
      
      Also allow individual registering and removal of subs.
      
      * Make it build
      
      * Update frame/identity/src/lib.rs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      
      * Tests
      
      * Add benchmarks
      
      * Add some reasonable weights
      
      * Docs
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      cad18b0f
  13. Jul 16, 2020
  14. Jul 15, 2020
  15. Jul 14, 2020
  16. Jul 12, 2020
    • Bastian Köcher's avatar
      Make signature batching use specialized methods (#6616) · 8ab23faf
      Bastian Köcher authored
      It was a mistake to use the `*_verify` methods for signature batching.
      This pr move the signature batching into their own functions. This is
      required, because otherwise transaction signature verification infers
      with other signature verifications.
      
      This pr also temporarily disables signature batching. The functionality
      stays, but we need to make sure that all nodes have the new runtime
      interface, before we can bring back signature batching.
      8ab23faf
    • Kian Paimani's avatar
      Remove duplicate comments (#6638) · c03f1743
      Kian Paimani authored
      c03f1743
  17. Jul 10, 2020
  18. Jul 09, 2020
    • Alexander Theißen's avatar
      seal: Rework contracts API (#6573) · 25de5b5c
      Alexander Theißen authored
      * Transition getter functions to not use scratch buffer
      
      * Remove scratch buffer from ext_get_storage
      
      * Remove scratch buffer from ext_call
      
      * Remove scratch buffer from ext_instantiate
      
      * Add ext_input and remove scratch buffer
      
      * Rework error handling (changes RPC exposed data)
      
      * ext_return passes a flags field instead of a return code
      	* Flags is only for seal and not for the caller
      	* flags: u32 replaced status_code: u8 in RPC exposed type
      * API functions use a unified error type (ReturnCode)
      * ext_transfer now traps on error to be consistent with call and instantiate
      
      * Remove the no longer used `Dispatched` event
      
      * Updated inline documentation
      
      * Prevent skipping of copying the output for getter API
      
      * Return gas_consumed from the RPC contracts call interface
      
      * Updated COMPLEXTITY.md
      
      * Rename ext_gas_price to ext_weight_to_fee
      
      * Align comments with spaces
      
      * Removed no longer used `ExecError`
      
      * Remove possible panic in `from_typed_value`
      
      * Use a struct as associated data for SpecialTrap::Return
      
      * Fix nits in COMPLEXITY.md
      
      * Renamed SpecialTrap to TrapReason
      
      * Fix test
      
      * Finish renaming special_trap -> trap_reason
      
      * Remove no longer used get_runtime_storage
      
      * fixup! Remove no longer used get_runtime_storage
      
      * Removed tabs for comment aligment
      25de5b5c
    • Bastian Köcher's avatar
      389faaf5
    • Alan Sapede's avatar
      Make evm errors public (#6598) · 20d403ae
      Alan Sapede authored
      20d403ae
  19. Jul 08, 2020
  20. Jul 07, 2020