* Introduce an IndexedEvent
* Plumb topics through the Ext interface.
* Add topics to ext_deposit_event
* Charging for events.
* Check the number of topics.
* Check for duplicate topics.
* Bump API version.
* Move derive(*Eq) under test.
* Use sorting for finding duplicates.
* Sketch of indexed events.
* Get EventIndex by holding another variable.
* Add some docs.
* Use DoubleMap to store reverse topic index
* Implement StorageDoubleMap::append
* Use append for EventTopics.
* Refactor.
* Avoid `mutate`
* Docs.
* Add topics to EventRecord
* Update tests.
* Rebuild.
* Bump version.
* Event topics test.
* Mix in BlockNumber to distinguish updates
* Fix srml-system test.
* Post merge fixes.
* Comments/TODO.
* Move the is_offline and is_major_syncing logic to service.rs
* Move the ImportQueue to service.rs
* Remove stop() and abort()
* Add some more documentation to sync.rs
* proof on child trie
* higher level api for child storage proof
* boilerplate for proof from light fetch
* actually check proof on light fetch
* Do not break former encoding
* tabify
* tabify2
* Add child trie root tx to full_storage_root transaction.
* Shorten long lines.
* Temp rename for audit
* Make full_storage a trait method
* Name back and replace some code with full_storage where it looks fine.
* fix indentations, remove unused import
* flush child root to top when calculated
* impl +1
* Rewrite the PSM
* Fix disconnecting from reserved peers
* Minor adjustements
* Address review
* Reputation changes adjustements
* More adjustements
* Adjust all reputations
* More fixes and adjustments
* Improve proof
* Remove the possible panic
* Make sure reputation reaches 0
* Add index caching to election
* Initial draft of the new phragmen API.
* Port post-processing to the new API.
* Fix tests and accuracy.
* Final fixes.
* Unify convert namings.
* Remove todo.
* Some typos.
* Bump.
* Add extended balance type doc.
* A bit more sophisticated weight compensation.
* Fix review feedbacks.
* Bump.
* Final updates
* Add a basic PR template
* Update
* Update
* Another iteration.
* Fixes.
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
* Be not rude
* Label only if you have permissions
`impl_runtime_apis!` is not only implementing the apis, it also calls
them internally and thus generates the warning. So, we just allow
depracted calls in the generated code.
* Remove the Incoming enum
* Use tokio in the protocol background thread
* Some internal protocol logic simplifications
* Merge the protocol thread with the network thread
* More the status_sinks logic to Service
* Remove FromNetworkMsg
* ignore light nodes in ConsensusGossip
* fixed method name
* temporary disabled penalty when block is announced
* remove traces of BLOCK_ANNOUNCE_REPUTATION_CHANGE
* Reformulate random seed to be more random
- First 80 random values come from cycling the incomplete series (
instead of filling with zeroes)
- Calculate random material each usage (use a single amalgamated
ring buffer to store them for avoiding 81 lookups each time)
- Mutate inputs by hashing each with:
- its index (into the 81)
- an additional "subject" key provided by caller
This keeps the final output low-influence while still allowing
it to be used as the seed to independent contexts. (Hashing the
result to give the final seed is no better than using parent_hash).
* Docs
* Bump runtime
* Update notes
* Remove feature(alloc)
* Update srml/system/src/lib.rs
Co-Authored-By: gavofyork <github@gavwood.com>