* 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: arkpar <arkady.paronyan@gmail.com>
* 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
* 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
* Implement support for renaming runtime api functions
* Redelete the wasm files
* FIxes test
* Fix test correctly...
* Bring back old `authorities`
* Tag as deprecated
* Fixes compilation on WASM
* Add missing method implementations
* Fixes tests
* Increase `spec_version`
* Move authorities interface from Core to consensus
f
* notify all caches of block insert + create with up-to-date best_fin
* merged authorities_are_cached from light_grandpa_import2
* Add ProvideCache trait
* Create helper function for 'get_cache'
* Fix some formatting
* Bump impl version
* Resolve wasm conflicts
* Apply review comments
* Use try_for_each
* Move authorities interface from Core to consensus
f
* notify all caches of block insert + create with up-to-date best_fin
* merged authorities_are_cached from light_grandpa_import2
* Add ProvideCache trait
* Create helper function for 'get_cache'
* Fix some formatting
* Bump impl version
* Resolve wasm conflicts
* Apply review comments
* Use try_for_each
* Move authorities interface from Core to consensus
f
* notify all caches of block insert + create with up-to-date best_fin
* merged authorities_are_cached from light_grandpa_import2
* Add ProvideCache trait
* Create helper function for 'get_cache'
* Fix some formatting
* Bump impl version
* Resolve wasm conflicts
* Apply review comments
* Use try_for_each
* Increment impl_version
* Update lib.rs
* First draft of sudo module documentation
* add ignore tags to code blocks
* Suggested Updates
Still needs some more love with links
* Update lib.rs
* Add links to other modules
* Update lib.rs
* style
* missed parens
* First draft of extended balance type
* Test cleanup.
* Update staking docs.
* Add a good failing test case for quintill
* Bring back saturating.
* Some final fixes
* A few more.
* Update wasm; Bump spec;
* Re-bump.
* Custom lossy conversion from currency to vote
* remove print
* Fix reverse conversion issue.
* void. Re-trigger ci.
* Proxy voting in democracy
* Proxy voting for council elections
* Bump and build
* Kill proxy when account dead
* Rebuild wasm
* Fix democraxy delegation locking
* Update srml/council/src/seats.rs
Co-Authored-By: gavofyork <github@gavwood.com>
* Update to use mutate
* all the ise
* forgot a misspelling
* a few more replacements
* bump impl
* rollback and fixes
* bump impl again
* Add aliases for RPC
* Update on_demand.rs
* Add `start_aura2`.
* .gitignore patch conflict files
and remove one that accidentally got committed
* Fix build
The tests still don’t work.
* Fix compilation errors
* Fix compile errors (again)
* Try (and fail) to fix tests
* Properly deserialize data
Previously, `DigestItem::Consensus` had no separate `DigestItemType`,
so it did not get properly serialized and deserialized.
* Add extra debug logging. Always allow old seals.
A `RUST_LOG=substrate_aura_consensus cargo test --all -- --nocapture \
tests::authoring_blocks` revealed that old seals were being and
rejected, causing the test to hang. As a temporary debug measure, allow
old seals unconditionally, so that CI can test if this fixes the
problem.
* Forcibly disable rejection of old seals
* Use old trait, but newer serialization
The old trait for `CompatibleDigestItem` actually worked. By changing
its implementation, one can ensure that all *new* seals have the modern
form, but *legacy* seals are still decoded correctly.
* Bump impl version
* Squash spurious deprecation warning
`rustc` should not be emitting a deprecation warning in deprecated
code, but it does, so silence it.
* Rip out unused Cargo feature
* Move AURA to aura_primitives
* Respond to code review
* Wrap overly-long line
* Reduce logging verbosity and add target
* Add dependency on `sr-primitives` to `aura_primitives`
* Fix build
It failed with a message about Cargo.lock being out of date.
* core: aura: rename aura engine id const
* core: aura: remove superfluous logging
* core: primitives: add removed semicolons
* core: aura: remove unused import
* core: network: style fix
* runtime: update wasm blobs
* runtime: bump impl_version
* core: primitives: tag all DigestItemType variants explicitly
* Add: documentation for srml_contract, per @sergeis comments. TODO: make concise and add usage example
* Fix: minor spelling and grammar
* Add: Revisions to the doc clarification from @Sergei on trx revert behavior
* Edit: added spacing btw function list for better readability
* Remove: usage create contract example todo later
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicolezhuis@gmail.com>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicolezhuis@gmail.com>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicolezhuis@gmail.com>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicolezhuis@gmail.com>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicolezhuis@gmail.com>
* Edit: explained max gas limit revert behavior in greater detail
* Edit: incorporated first round of PRs, mostly syntax/styling
* Edit: incorporated Sergeis mental model, terms, and added usage examples
* Fix: staking module is no longer closely related to contract. Balances now manages the reaping of accounts
* Minor cleanup of links/text that are not ready to be shown
* Update srml/contract/src/lib.rs
made more concise
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Minor edits from PR
* Explained contract creation in more detail, fixed PR suggestions
* Linted according to contri guidelines
* Created a notable scenarios section, unlisted public functions in lieu of a direct link to the module
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/tests.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* Update srml/contract/src/lib.rs
Co-Authored-By: nczhu <nicole@parity.io>
* minor commit after pr feedback
* s/codehash/code_hash for consistency
* factorization
* introduce GenericUnhashedStorage
* implement generator and storage
* impl double map in storage macro
* improve StorageDoubleMapXX methods
* remove storage from example and impl test
* remove old comments
* wasm compatible
* improve imports
* rename storages
* update runtime impl version
* make code less verbose
* impl hash config for second key in double map
hash available are all of Hashable trait
* use double map in decl_storage for contract
* fix double map config issue
* add hasher into metadata
* update impl version and build wasm
* doc
* add attrs
* update metadata version
* update runtime version
* fix unused storage
* Timestamp period should be expressed as expected period
* Fix test
* Ensure value never illegal
* Rename
* Remove println
* Add default
* Comment
* Fix, bump and rebuild wasm
* Fix test
* Add TODOs
* Configure only minimum_period.
* Fix
* Update srml/timestamp/src/lib.rs
Co-Authored-By: gavofyork <github@gavwood.com>
* Update srml/timestamp/src/lib.rs
Co-Authored-By: gavofyork <github@gavwood.com>
* Introduce `ReservableCurrency`
* Update Docs for `ReservableCurrency`
* Update Tests
* Bump spec and rebuild wasm
* Extra: Add a note to `slash()`
Discussion in Riot clarified the behavior of `slash()` and `can_slash()`. Trying to sneak clarifying comments about it into this PR
* Update lib.rs
* Don't drop the periods!
CC @shawntabrizi
* improve decl_storage instance doc
* use decl_event doc accordignly
* automate doc and while allow to extend it on event
* some missed ones
* Update srml/example/src/lib.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>
* Update srml/support/procedural/src/storage/transformation.rs