Skip to content
  1. Sep 23, 2020
  2. Sep 22, 2020
  3. Sep 21, 2020
  4. Sep 18, 2020
    • Jon Häggblad's avatar
      grandpa-rpc: use FinalityProofProvider to check finality for rpc (#6215) · 8a0ac4c4
      Jon Häggblad authored
      * grandpa-rpc: use FinalityProofProvider to check finality for rpc
      
      * grandpa-rpc: minor tidy
      
      * grandpa-rpc: remove dyn FinalityProofProvider
      
      * grandpa-rpc: remove unused dependencies
      
      * node: move finality_proof_provider setup
      
      * grandpa-rpc: print error reported by finality_proof_provider
      
      * grandpa-rpc: add note about unnecessary encode/decode
      
      * grandpa-rpc: dont encode/decode and use correct hash
      
      * grandpa-rpc: set_id is optional
      
      * grandpa-rpc: create test for prove_finality
      
      * grandpa-rpc: set visibility back to how it was
      
      * grandpa-rpc: remove unused dependency
      
      * grandpa-rpc: minor tidy
      
      * grandpa: doc strings
      
      * grandpa-rpc: rename to prove_finality
      
      * grandpa-rpc: use current set id if none is provided
      
      * grandpa-rpc: remove unnecessary check in test
      
      * node: group finality_proof_provider in rpc_setup
      
      * grandpa: make prove_finality concrete in FinalityProofProvider
      
      * grandpa-rpc: wrap finality output in struct and store as Bytes
      
      * grandpa-rpc: exhaustive error codes and wrap
      
      * grandpa-rpc: let prove_finality take a range instead of a starting point
      
      * grandpa-rpc: fix test for changed API
      
      * grandpa-rpc: fix line length
      
      * grandpa: fix reviewer nits
      
      * node/rpc: fix reviewer comments
      8a0ac4c4
    • Shawn Tabrizi's avatar
      WeightInfo for Scheduler (#7138) · 743cf754
      Shawn Tabrizi authored
      * initial scheduler stuff
      
      * integrate weightinfo
      
      * Update pallet_scheduler.rs
      743cf754
    • Anton Gavrilov's avatar
      Prometheus metrics for RPC calls (#7088) · 2c5a82f8
      Anton Gavrilov authored
      * WS and HTTP middlewares added
      
      * Prometheus endpoint added
      
      * Counters renamed
      
      * Proper style for inc
      
      * Metrics initialization re-written
      
      * Rework to handler middleware
      
      * Introduce transport prefix for metrics
      
      * String shortened
      
      * Commented code removed, new line inserted
      
      * One more string shortened
      
      * Wasm build fixed
      
      * Wasm build fixed once again
      
      * Rework to shared metrics
      
      * Added collectors label
      
      * Tilde removed from cargo
      
      * Switch to owned metrics in parameters
      2c5a82f8
    • Jianping Deng's avatar
      Update SS58 configuration for Bifrost (#7142) · 22ea00a1
      Jianping Deng authored
      * Add 6 as address type of ss58 for Bifrost Network
      
      * Update SS58 configuration for Bifrost
      22ea00a1
    • Xiliang Chen's avatar
      Bounties (#5715) · 67e1dad9
      Xiliang Chen authored
      
      
      * add some compact annotation
      
      * implement bounties for treasury
      
      * fix test build
      
      * remove some duplicated code
      
      * fix build
      
      * add tests
      
      * fix build
      
      * fix tests
      
      * rename
      
      * merge deposit byte fee
      
      * add comments
      
      * refactor storage
      
      * support sub bounty
      
      * emit BountyBecameActive when sub bounty is created
      
      * able to contribute bounty
      
      * allow curator to cancel bounty
      
      * remove bounty contribution
      
      * implement bounty expiry
      
      * Able to extend bounty
      
      * fix build and update tests
      
      * create sub bounty test
      
      * add more tests
      
      * add benchmarks for bounties
      
      * fix build
      
      * line width
      
      * fix benchmarking test
      
      * update trait
      
      * fix typo
      
      * Update lib.rs
      
      Missing documentation on Bounties added on this change. Please check the definitions of `propose_bounty` and `create_bounty`.
      
      * update docs
      
      * add MaximumSubBountyDepth
      
      * put BountyValueMinimum into storage
      
      * rework bount depth
      
      * split on_initialize benchmarks
      
      * remove components from constant functions
      
      * Update weight integration into treasury
      
      * Update reject proposal read/writes
      
      * fix weight calculation
      
      * Ignore weights with 0 factor
      
      * Remove 0 multipliers
      
      * add some docs
      
      * allow unused for generated code
      
      * line width
      
      * allow RejectOrigin to cancel a pending payout bounty
      
      * require BountyValueMinimum > ED
      
      * make BountyValueMinimum configurable by chain spec
      
      * remove sub-bounty features
      
      * update curator
      
      * accept curator
      
      * unassign and cancel
      
      * fix tests
      
      * new tests
      
      * Update lib.rs
      
      - Include on `Assign_curator`, `accept_curator` and `unassign_curator` on Bounties Protocol Section 
      - Include curator fee and curator deposit definitions on Terminology
      - Update intro.
      
      * fix test
      
      * update extend_bounty_expiry
      
      * fix benchmarking
      
      * add new benchmarking code
      
      * add docs
      
      * fix tests
      
      * Update benchmarking.rs
      
      * Make BountyValueMinimum a trait config instead of stroage value
      
      * fix runtime build
      
      * Update weights
      
      * Update default_weights.rs
      
      * update weights
      
      * update
      
      * update comments
      
      * unreserve curator fee
      
      * update tests
      
      * update benchmarks
      
      * fix curator deposit handling
      
      * trigger CI
      
      * fix benchmarking
      
      * use append instead of mutate push
      
      * additional noop tests
      
      * improve fee hanlding. update event docs
      
      * RejectOrigin to unassign
      
      * update bounty cancel logic
      
      * use Zero::zero() over 0.into()
      
      * fix tests
      
      * fix benchmarks
      
      * proposed fixes to bounties
      
      * fix tests
      
      * fix benchmarks
      
      * update weightinfo
      
      * use closure
      
      * fix compile
      
      * update weights
      
      Co-authored-by: default avatarRRTTI <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      67e1dad9
    • Wei Tang's avatar
      pow: replace the thread-base mining loop with a future-based mining worker (#7060) · 5380bbce
      Wei Tang authored
      
      
      * New worker design
      
      * Remove unused thread import
      
      * Add back missing inherent data provider registration
      
      * Add function to get a Cloned metadata
      
      * Add some docs
      
      * Derive Eq and PartialEq for MiningMetadata
      
      * Fix cargo lock
      
      * Fix line width
      
      * Add docs and fix issues in UntilImportedOrTimeout
      
      * Update client/consensus/pow/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Add back comments
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      5380bbce
    • Shawn Tabrizi's avatar
      Pallet Indices (#7137) · a3080f27
      Shawn Tabrizi authored
      a3080f27
    • Benjamin Kampmann's avatar
      Tracing for wasm with bridging to native (#6916) · a9c73113
      Benjamin Kampmann authored
      
      
      * implement events handling, implement parent_id for spans & events
      
      * add events to sp_io::storage
      
      * update test
      
      * add tests
      
      * adjust limit
      
      * let tracing crate handle parent_ids
      
      * re-enable current-id tracking
      
      * add test for threads with CurrentSpan
      
      * fix log level
      
      * remove redundant check for non wasm traces
      
      * remove duplicate definition in test
      
      * Adding conditional events API
      
      * prefer explicit parent_id over current,
      
      enhance test
      
      * limit changes to client::tracing event implementation
      
      * remove From impl due to fallback required on parent_id
      
      * make tracing codecable
      
      * replace with global tracing
      
      * new tracing interface
      
      * impl TracingSubscriber in client
      
      * implement access to global TracingSubscriber from primitives
      
      * span for wasm
      
      * increment towards Wasm Tracing Subscriber implementation
      
      * increment, remove sp-tracing from runtime-interface
      
      * increment, it compiles
      
      * attained original functionality with new mechanism
      
      * implement remaining TracingSubscriber functions
      
      * remove spans from decl_module
      
      * add handling for encoded values
      
      * Revert "replace with global tracing"
      
      This reverts commit 8824a60deea54d9b437407a21c8ceaf6a1902ee5.
      
      * Wasm Side Tracing
      
      * tracing on wasm
      
      * enable tracing wasm on node-runtime
      
      * export all the macros in std
      
      * tracing subscriber on wasm-side only
      
      * pass spans and events over and record them
      
      * reactivate previous code and  cleanup
      
      * further cleaning up
      
      * extend the span macros, activate through executive
      
      * tracking the actual extrinsic, too
      
      * style
      
      * fixing tests
      
      * spaces -> tabs
      
      * attempting to reactivate params
      
      * activate our tests in CI
      
      * some passing
      
      * tests passing
      
      * with core lazy
      
      * global tracer for wasm side with pass over
      
      * fixing metadata referencing
      
      * remove const_fn feature requirement
      
      * reenable dispatch traces
      
      * reset client tracing
      
      * further cleaning up
      
      * fixing runtime-test
      
      * move tracing-build setup into runtime-test
      
      * Merge DebugWriter from tracing and frame-support, move to sp-std
      
      * remove dangling fixme
      
      * Docs for tracing primitives
      
      * cleaning up a bit more
      
      * Wasm interface docs
      
      * optimise docs.rs setup
      
      * adding tracing flags to uncomment
      
      * remove brace
      
      * fixing imports
      
      * fixing broken syntax
      
      * add required modules
      
      * nicer formatting
      
      * better target management
      
      * adding low level storage tracing events into frame
      
      * add custom Debug impl for WasmMetadata
      
      * cloning profiler
      
      * adding info about cloning profiler
      
      * using in-scope for within calls
      
      * proper time tracing, cleaning up println
      
      * allow to disable tracing on runtime_interface-macro
      
      * disable tracing for wasm-tracing-interface
      
      * simplify wasm-tracing-api
      
      * update client to new interface
      
      * fixing docs and tests for sp-tracing
      
      * update integration tests
      
      * re-activating enter_span
      
      * dropping FIXME, it's documented
      
      * fix formatting
      
      * fix formatting
      
      * fix imports
      
      * more debug info
      
      * inform wasm about it being disabled by returning 1
      
      * only one tracer, but enabled multi-all support
      
      * make trait pub again for tests
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * fixing wasm doc tests for proper usage
      
      * remove unnecessary import
      
      * fixing formatting
      
      * minor style fixes
      
      * downgrading wabt
      
      * update error message for UI
      
      * Fix interface test
      
      * next attempt to fix macros
      
      * geee
      
      * revert tracing on hashed for future PR
      
      * remove local macros, use originals
      
      * we are able to convert to static items
      
      * implement more WasmValue types
      
      * adding support to convert str, debug and encoded values
      
      * more minor fixes
      
      * revert unsafe 'static making
      
      * fix indentation
      
      * remove commented lines
      
      * bump all them tracing versions
      
      * cleaning up docs and info
      
      * document new flag
      
      * the new layered system handles span cloning better
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      Co-authored-by: default avatarMatt Rutherford <[email protected]>
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      a9c73113
  5. Sep 17, 2020
  6. Sep 16, 2020
    • Shawn Tabrizi's avatar
      WeightInfo for Vesting Pallet (#7103) · 9aa8698c
      Shawn Tabrizi authored
      * WeightInfo for Vesting Pallet
      
      * clean up weight docs
      
      * Update lib.rs
      
      * try to pipe max locks
      
      * Update for new type
      
      * add warning when locks > MaxLocks
      
      * Update lib.rs
      
      * fix compile
      
      * remove aliasing, fix trait def
      
      * Update
      9aa8698c
    • Bastian Köcher's avatar
      Send import notification always for re-orgs (#7118) · 0a6f7b08
      Bastian Köcher authored
      
      
      * Send import notification always for re-orgs
      
      This pr changes the behavior of sending import notifications. Before we
      only send notifications when importing blocks on the tip of the chain or
      on similar conditions. However we did not send a notification when we
      for example being in a state where we import multiple blocks to catch
      up. If we re-org in this process, systems like the transaction pool
      would not be notified about this re-org. This means, that we would also
      not resubmit transactions of these retracted blocks. This pr fixes this,
      by always sending a notification on a re-org.
      
      See
      https://github.com/substrate-developer-hub/substrate-node-template/issues/82
      for some context about the bug.
      
      * Update client/service/src/client/client.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      0a6f7b08