Skip to content
  1. Aug 03, 2020
    • Kian Paimani's avatar
      Add integrity test for slash defer duration (#6782) · 1a84ad87
      Kian Paimani authored
      * Add integrity test for slash defer duration
      
      * Wrap in externalities
      
      * Update frame/staking/src/lib.rs
      1a84ad87
    • Shawn Tabrizi's avatar
      Improve Benchmark Writer: Remove Unused Components, Remove Multiply by Zero,... · dd6ef0a3
      Shawn Tabrizi authored
      Improve Benchmark Writer: Remove Unused Components, Remove Multiply by Zero, Files Split by Pallet (#6785)
      
      * initial improvements
      
      * better file management, ignore unused components
      
      * Output warning when components unused
      
      * update comment
      
      * Write even when base weight is zero
      
      * remove unwrap where possible
      
      * Dont sort components to dedup
      
      * undo delete
      
      * improve clarity of unused components
      
      * remove unused dep
      
      * Update Process.json
      dd6ef0a3
    • Alexander Theißen's avatar
      seal: Fix and improve error reporting (#6773) · 6671d017
      Alexander Theißen authored
      * seal: Rework ext_transfer, ext_instantiate, ext_call error handling
      
      * Deny calling plain accounts (must use transfer now)
      * Return proper module error rather than ad-hoc strings
      * Return the correct error codes from call,instantiate (documentation was wrong)
      * Make ext_transfer fallible again to make it consistent with ext_call
      
      * seal: Improve error messages on memory access failures
      
      * seal: Convert contract trapped to module error
      
      * seal: Add additional tests for transfer, call, instantiate
      
      These tests verify that those functions return the error types
      which are declared in its docs.
      
      * Make it more pronounced that to_execution_result handles trap_reason
      
      * Improve ReturnCode docs
      
      * Fix whitespace issues in wat files
      
      * Improve ReturnCode doc
      
      * Improve ErrorOrigin doc and variant naming
      
      * Improve docs on ExecResult and ExecError
      
      * Encode u32 sentinel value as hex
      
      * with_nested_context no longer accepts an Option for trie
      
      * Fix successful typo
      
      * Rename InvalidContractCalled to NotCallable
      6671d017
    • Max Inden's avatar
      client/network: Fix wrong metric help text (#6794) · 0553dabe
      Max Inden authored
      The `sub_libp2p_kademlia_query_duration` metric only has the dimension
      `type` not `protocol`.
      0553dabe
    • dependabot[bot]'s avatar
      Bump elliptic from 6.5.2 to 6.5.3 in /.maintain/chaostest (#6791) · 5a81eb86
      dependabot[bot] authored
      
      
      Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
      - [Release notes](https://github.com/indutny/elliptic/releases)
      - [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      5a81eb86
    • 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
    • Max Inden's avatar
      client/network: Expose DHT query duration to Prometheus (#6784) · 1365eef4
      Max Inden authored
      Expose duration of DHT put and get request as a Prometheus histogram.
      1365eef4
  2. Jul 31, 2020
    • Pierre Krieger's avatar
      Don't close inbound notifications substreams immediately (#6781) · a1786a92
      Pierre Krieger authored
      * Don't close inbound notifications substreams immediately
      
      * Fix not closing in return to node A closing
      a1786a92
    • Bastian Köcher's avatar
      Order delta before calculating the storage root (#6780) · 9ca2300b
      Bastian Köcher authored
      We need to order the delta before calculating the storage root, because
      the order is important if the storage root is calculated using a storage
      proof. The problem is arises when the delta is different than at the
      time the storage root was recorded, because we may require a different
      node that is not part of the proof and so, the storage root can not be
      calculated. The problem is solved by always order the delta to use the
      same order when calculating the storage root while recording the
      stroage proof and when calculating the storage root using
      the storage proof.
      
      To prevent this bug in future again, a regression test is added.
      
      Fixes: https://github.com/paritytech/cumulus/issues/146
      9ca2300b
    • Wei Tang's avatar
      Allow blacklisting blocks from being finalized again after block revert (#6301) · 3c5cbb00
      Wei Tang authored
      * Allow blacklisting blocks from being finalized again after block revert
      
      * Use BlockRules for storing unfinalized and add have_state_at in revert
      
      * Move finalization_check in finalize_block upward
      
      * Directly mark finalization blacklist as badblocks
      
      * Remove obselete comment
      3c5cbb00
    • thiolliere's avatar
      Fix link (#6775) · 7db19db9
      thiolliere authored
      7db19db9
  3. Jul 30, 2020
  4. Jul 29, 2020
  5. Jul 28, 2020
  6. Jul 27, 2020
  7. Jul 26, 2020
  8. 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