Skip to content
  1. Apr 12, 2019
  2. Apr 11, 2019
  3. Apr 10, 2019
  4. Apr 09, 2019
  5. Apr 08, 2019
    • André Silva's avatar
      grandpa: Voter persistence and upgrade to finality-grandpa v0.7 (#2139) · a1e15ae5
      André Silva authored and asynchronous rob's avatar asynchronous rob committed
      * core: grandpa: migrate to grandpa 0.7
      
      * core: grandpa: store current round votes and load them on startup
      
      * core: grandpa: resend old persisted votes for the current round
      
      * core: grandpa: store base and votes for last completed round
      
      * core: grandpa: fix latest grandpa 0.7 changes
      
      * core: grandpa: update to grandpa 0.7.1
      
      * core: grandpa: persist votes for last two completed rounds
      
      * core: grandpa: simplify VoterSetState usage
      
      * core: grandpa: use Environment::update_voter_set_state
      
      * core: grandpa: fix aux_schema test
      
      * core: grandpa: add docs
      
      * core: grandpa: add note about environment assumption
      
      * core: grandpa: don't update voter set state on ignored votes
      
      * core: grandpa: add test for v1 -> v2 aux_schema migration
      
      * core: grandpa: add test for voter vote persistence
      
      * core: grandpa: use grandpa 0.7.1 from crates.io
      
      * core: grandpa: use try_init in test
      
      * core: grandpa: add comment about block_import in test
      
      * core: grandpa: avoid cloning HasVoted
      
      * core: grandpa: add missing docs
      
      * core: grandpa: cleanup up can_propose/prevote/precommit
      a1e15ae5
    • Gregory Terzian's avatar
      remove clone bound on specialization in testnet factory (#2157) · ed3ae4ac
      Gregory Terzian authored and asynchronous rob's avatar asynchronous rob committed
      ed3ae4ac
  6. Apr 06, 2019
  7. Apr 05, 2019
  8. Apr 04, 2019
    • Marek Kotewicz's avatar
      simplification of peerset api (#2123) · 1142bcde
      Marek Kotewicz authored
      * Introduction of PeersetHandle
      
      * integrate PeersetHandle with the rest of the codebase
      
      * fix compilation errors
      
      * more tests for peerset, fixed overwriting bug in add_reserved_peer
      
      * Slots data structure and bugfixes for peerset
      
      * bend to pressure
      
      * updated lru-cache to 0.1.2 and updated linked-hash-map to 0.5.2
      
      * peerset discovered list is now a LinkedHashMap
      
      * fix review suggestions
      
      * split back Peerset and PeersetHandle
      
      * test for Peerset::discovered
      
      * applied review suggestions
      
      * fixes to peerset::incoming
      
      * peerset disconnects are all instantaneous
      
      * instantaneous drop in peerset finished
      
      * Peerset::set_reserved_only can also reconnect nodes
      
      * Peerset scores cache uses lru-cache
      
      * remove redundant function call and comment from Peerset::on_set_reserved_only
      
      * add_peer returns SlotState enum
      
      * apply review suggestions
      
      * is_reserved -> is_connected_and_reserved
      1142bcde
    • Arkadiy Paronyan's avatar
      Disconnect on protocol timeout (#2212) · 301844dd
      Arkadiy Paronyan authored
      301844dd
    • André Silva's avatar
    • Bastian Köcher's avatar
      Introduce `original_storage` and `original_storage_hash` (#2211) · 6920b169
      Bastian Köcher authored
      Both functions will ignore any overlayed changes and access the backend
      directly.
      6920b169
    • Xiliang Chen's avatar
      code cleanup (#2206) · cb7a8161
      Xiliang Chen authored
      cb7a8161
  9. Apr 03, 2019
  10. Apr 02, 2019
    • asynchronous rob's avatar
      Initial version of the polite-grandpa networking protocol (#2110) · bb95e7d6
      asynchronous rob authored
      
      
      * Consensus status packet
      
      * Allow for repropagation after status
      
      * More generic gossip
      
      * add a basic view struct and gossip module
      
      * move gossip stuff to the gossip module
      
      * integrate view into gossip
      
      * some reshuffling
      
      * alter rules for keeping one commit at a time in view
      
      * Allow sending addressed messages
      
      * don't cast outgoing votes if we know that we voted before
      
      * Handle one hop messages
      
      * initial run at polite grandpa
      
      * build WASM
      
      * handle neighbor messages
      
      * refactor validator's internals into an Inner struct
      
      * gossip only knows to keep or discard messages. optimize should_send_to
      
      * Periodic rebroadcast
      
      * implement `should_send_to` and message_expired
      
      * track peers' best received commit height
      
      * Pass peer id to topic steam
      
      * kill rebroadcasting network
      
      * Notify about existing peers
      
      * clean up network APIs a bunch
      
      * implement gossip::send_message for direct messages
      
      * refactor network trait
      
      * implement gossip::send_message for direct messages
      
      * get all non set-change tests passing
      
      * treat unknown rebroadcasts as broadcasts
      
      * get all other main tests passing
      
      * remove unimplemented test
      
      * everything compiles
      
      * treat unknown rebroadcasts as broadcasts
      
      * Rebradcast interval
      
      * Apply suggestions from code review
      
      Style
      
      Co-Authored-By: default avatararkpar <[email protected]>
      
      * Style
      
      * some module docs
      
      * address some grumbles + docs
      
      * allow rebroadcast every few minutes
      
      * send_topic && generic context
      
      * some tests for view change
      
      * more grumbles & tests
      
      * use send_peer
      bb95e7d6
    • Kian Peymani's avatar
      Fix Staking Accuracy issues. (#2180) · b7eeb28d
      Kian Peymani authored
      * Nasty patch for election
      
      * cleanup
      
      * a few more comments.
      
      * minor fixes
      
      * Improve comment
      b7eeb28d
    • asynchronous rob's avatar
      Aura: add a deprecated method for seal compatibility (#2176) · f0c21815
      asynchronous rob authored
      * aura API defaults to rejecting old seals
      
      * build node-cli
      f0c21815
    • Niklas Adolfsson's avatar
    • cheme's avatar
      no_std support for substrate trie (#2146) · 669e7918
      cheme authored
      * no_std trie compile in test_runtime (require to set nightly feature due
      to the way hashbrown currently works).
      
      * No nightly with hashmap_core.
      
      * using crate elastic-array
      
      * switch to publish trie crates
      
      * fix default array decl
      
      * bump impl_version for ci
      
      * set all semver when possible wasm, and remove redundant code.
      
      * Actually test use_trie function
      
      * impl version +1
      
      * Bump impl version
      669e7918