Skip to content
  1. Aug 03, 2020
    • Shawn Tabrizi's avatar
      Improve Benchmark Writer: Remove Unused Components, Remove Multiply by Zero,... · 2bd4f451
      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
      2bd4f451
    • Alexander Theißen's avatar
      seal: Fix and improve error reporting (#6773) · e81a3160
      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
      e81a3160
    • Max Inden's avatar
      client/network: Fix wrong metric help text (#6794) · eb57b07a
      Max Inden authored
      The `sub_libp2p_kademlia_query_duration` metric only has the dimension
      `type` not `protocol`.
      eb57b07a
    • dependabot[bot]'s avatar
      Bump elliptic from 6.5.2 to 6.5.3 in /.maintain/chaostest (#6791) · 125f77dd
      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>
      125f77dd
    • Bastian Köcher's avatar
      Fix transaction payment runtime api (#6792) · 54e62985
      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.
      54e62985
    • Max Inden's avatar
      client/network: Expose DHT query duration to Prometheus (#6784) · 82813177
      Max Inden authored
      Expose duration of DHT put and get request as a Prometheus histogram.
      82813177
  2. Jul 31, 2020
    • Pierre Krieger's avatar
      Don't close inbound notifications substreams immediately (#6781) · c32a3baa
      Pierre Krieger authored
      * Don't close inbound notifications substreams immediately
      
      * Fix not closing in return to node A closing
      c32a3baa
    • Bastian Köcher's avatar
      Order delta before calculating the storage root (#6780) · 64543a31
      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
      64543a31
    • Wei Tang's avatar
      Allow blacklisting blocks from being finalized again after block revert (#6301) · 9ae3a1ce
      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
      9ae3a1ce
    • thiolliere's avatar
      Fix link (#6775) · 1ec0ba86
      thiolliere authored
      1ec0ba86
  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) · bf0e1ec1
      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
      bf0e1ec1
    • Benjamin Kampmann's avatar
      remove breaking excepts · 1502626e
      Benjamin Kampmann authored
      v2.0.0-rc5+2
      1502626e