Skip to content
  1. Feb 05, 2019
  2. Feb 04, 2019
    • Andrew Jones's avatar
      Convert to jsonrpc-derive, use jsonrpc-* from crates.io (#1679) · b5587b37
      Andrew Jones authored
      * use local version of jsonrpc to test
      
      * Convert rpcs to test out in progress jsonrpc-derive api
      
      * Revert "Convert rpcs to test out in progress jsonrpc-derive api"
      
      This reverts commit 69231784.
      
      * Convert to new jsonrpc-derive macro
      
      * Add RPC trait Metadata comment
      
      * Break up long pubsub attr lines
      
      * Update to 10.0.1 jsonrpc-* from crates.io
      
      * Remove typed::Subscriber prefixes
      
      * Remove empty comment
      b5587b37
    • Michael Müller's avatar
      Replace allocator with freeing-bump allocator (#1656) · 217f2191
      Michael Müller authored
      * Link substrate issue tracker in panic
      
      * Replace allocator with freeing-bump allocator
      
      * Revert me: Panic on double allocate/free
      
      * Revert me: Add shallow benchmark for a first impression
      
      * Revert "Revert me: Add shallow benchmark for a first impression"
      
      This reverts commit 5f0d4df3.
      
      * Revert "Revert me: Panic on double allocate/free"
      
      This reverts commit a114df7d.
      
      * Rename heap to FreeingBumpHeapAllocator
      
      * Rename heap.rs to allocator.rs
      
      * Use sandbox heap
      
      * Move functions
      
      * Move variables into constructor
      
      * Revert "Move variables into constructor"
      
      This reverts commit f46fa0d0.
      
      * Remove unnecessary casts
      
      * Add comment for new parameter
      
      * Improve typing
      
      * Move variables into constructor
      
      * Avoid dynamic allocation
      
      * Remove unused variables
      
      * Revert "Link substrate issue tracker in panic"
      
      This reverts commit 32dfa1d0.
      
      In the meantime this was fixed in https://github.com/paritytech/substrate/pull/1667.
      
      * Improve naming
      
      * Only assert in debug mode
      
      * Remove dynamic allocation
      217f2191
    • Wei Tang's avatar
      Refactor aura and generalize slot worker (#1632) · 0b655477
      Wei Tang authored
      * Refactor aura and generalize slot worker
      
      * Fix bound issues
      
      * Change copyright to 2019
      
      * Write deps minor version
      
      * Don't pass inherent_data_providers
      
      * Revert "Write deps minor version"
      
      This reverts commit 6d886702.
      
      * Fix merge issues
      0b655477
    • Arkadiy Paronyan's avatar
      Fixed panic handling (#1667) · 6741381c
      Arkadiy Paronyan authored
      6741381c
  3. Feb 02, 2019
  4. Feb 01, 2019
    • André Silva's avatar
      Reduce consensus spam (#1658) · bd85e080
      André Silva authored and asynchronous rob's avatar asynchronous rob committed
      * core: fix predicate for dropping grandpa round messages
      
      * core: grandpa: drop commits topic on authority set change
      
      * core: gossip: only drop known messages based on expiration time
      
      * core: grandpa: don't broadcast commit messages
      
      * core: gossip: don't assume topics are header hashes
      
      * core: gossip: expire messages more agressively
      
      * core: grandpa: fix test environment
      
      * core: gossip: fix tests
      
      * core: gossip: track dead topics (and ignore messages)
      
      * core: gossip: test dead topic pruning
      bd85e080
    • Tomasz Drwięga's avatar
      Allow both consensus and runtime to limit block building (#1581) · 6cf70c49
      Tomasz Drwięga authored
      * Limit block size in runtime,
      
      * Add test for basic authorship.
      
      * Store length of extrinsics instead of computing it.
      
      * Don't rely on note_extrinsic
      
      * Use hashed version of storage and write test.
      
      * Recompile runtime.
      6cf70c49
  5. Jan 31, 2019
  6. Jan 30, 2019
    • cheme's avatar
      Merge metadata by module (#1428) · 6f3b43ee
      cheme authored
      Clean up metadata format. Merge events metadata into runtime metadata. Remove low value info (internal macro identifier and counters).
      6f3b43ee
  7. Jan 28, 2019
  8. Jan 25, 2019
    • Gav Wood's avatar
      Additional externs for ecdsa recovery and keccak (#1583) · 2929ba2c
      Gav Wood authored
      
      
      * Additional externs for ecdsa recovery and keccak
      
      * Update core/executor/src/wasm_executor.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      
      * Update core/executor/src/wasm_executor.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      
      * Fix grumble
      
      * Grumble.
      2929ba2c
    • Benjamin Kampmann's avatar
      Update dependencies (#1527) · f17d79fb
      Benjamin Kampmann authored
      * update to latest env_logger
      
      * roundabout dependency update
      
      * Update to latest vengen
      
      * Update rand to 0.6
      
      * Update to latest rng shuffle API
      
      * Roundabout update of dependencies
      
      * Update rustc_hex
      
      * Update wasm
      
      * Fix logging setup in tests
      
      * revert to fix test
      f17d79fb
    • Bastian Köcher's avatar
      Refactor CLI handling (#1368) · 77f5cb7c
      Bastian Köcher authored
      * Rework cli handling
      
      * Update readme
      
      * Adds support for custom subcommands and extra run parameters
      
      * Update readme
      
      * Fixes compilation after master merge
      
      * Make "Run" the default subcommand
      
      Actually its hidden to the outside that is an subcommand.
      
      * Rewrite CLI to work without breaking old CLI behavior
      
      * Some cleanup
      
      * Fix incorrect config setup
      
      * Update README
      
      * Fixes after merge
      
      * Fixes incorrect README
      77f5cb7c
    • Pierre Krieger's avatar
      Report the average network bandwidth (#1551) · 4c8c836b
      Pierre Krieger authored
      * Report the average network bandwidth
      
      * Fix concerns
      4c8c836b
  9. Jan 23, 2019
  10. Jan 22, 2019
  11. Jan 21, 2019
    • Tomasz Drwięga's avatar
      31b234e9
    • Michael Müller's avatar
      Fix wasm allocator (#1506) · 32e26191
      Michael Müller authored
      * Better allocator for wasm (#1460)
      
      * Add Arch Linux installation instructions
      
      * Enable tracing heap size
      
      * Extract heap
      
      * Replace linear allocator with buddy allocator
      
      * Fix test
      
      The purose of this big block is for the tests
      to test a failure when the block is too big
      though. The improved buddy allocation strategy
      results in this block fitting on the heap now.
      Hence the increase.
      
      * Get rid of memcpy in to_vec()
      
      * fixup: Style and comments
      
      * fixup: Split Linux instructions by distribution
      
      To prevent misunderstandings of people executing both.
      
      * fixup: Remove unnecessary types and code
      
      * fixup: Make Pointers start from 1, remove some panics, code improvements
      
      * fixup: Return 0 on errors
      
      * fixup: Move loop to separate function
      
      * fixup: Use FnvHashMap instead of HashMap
      
      * fixup: Fix error handling
      
      * fixup: Use current_size() instead of used_size()
      
      * fixup: Fix and document allocation offset
      
      * fixup: Remove unnecessary multiplication
      
      * fixup: Fix comments
      
      * fixup: Remove Arch installation instructions
      
      * Revert "Fix test"
      
      This reverts commit 292c177d.
      
      * fixup: Remove unused code, improve import
      
      * fixup: Proper alignment
      
      * fixup: Do not use internal constant in public description
      
      * fixup: Add comment regarding invariants
      
      * fixup: Move assertion to compile-time check
      
      * Fix bug in necessary tree level calculation
      
      The tree levels necessary to house a number
      of nodes was calculated incorrectly.
      
      * Improve naming
      32e26191
    • Bastian Köcher's avatar
      Make runtime api calls native when possible (#1302) · bf6a781b
      Bastian Köcher authored
      * Add simple benchmark for the runtime api
      
      * Make the executor support native calls
      
      * Some documentation
      
      * Hide behind `feature = "std"`
      
      * Rework the native calls
      
      * Make all tests compile again
      
      * Make every parameter using the Block serialized/deserialized in the native call
      
      * Forward `UnwindSafe` requirement
      
      * Remove debug stuff
      
      * Add some documentation
      
      * Fixes warnings
      
      * Fixes errors after master rebase
      
      * Fixes compilation after master rebase
      
      * Fixes compilation after rebase
      bf6a781b
    • Bastian Köcher's avatar
      Revert new wasm allocator (#1502) · 4d0eea0e
      Bastian Köcher authored
      * Revert "Better allocator for wasm (#1460)"
      
      This reverts commit c3bee593.
      
      * Update wasm files
      4d0eea0e
  12. Jan 19, 2019
  13. Jan 18, 2019
    • Michael Müller's avatar
      Better allocator for wasm (#1460) · c3bee593
      Michael Müller authored
      * Add Arch Linux installation instructions
      
      * Enable tracing heap size
      
      * Extract heap
      
      * Replace linear allocator with buddy allocator
      
      * Fix test
      
      The purose of this big block is for the tests
      to test a failure when the block is too big
      though. The improved buddy allocation strategy
      results in this block fitting on the heap now.
      Hence the increase.
      
      * Get rid of memcpy in to_vec()
      
      * fixup: Style and comments
      
      * fixup: Split Linux instructions by distribution
      
      To prevent misunderstandings of people executing both.
      
      * fixup: Remove unnecessary types and code
      
      * fixup: Make Pointers start from 1, remove some panics, code improvements
      
      * fixup: Return 0 on errors
      
      * fixup: Move loop to separate function
      
      * fixup: Use FnvHashMap instead of HashMap
      
      * fixup: Fix error handling
      
      * fixup: Use current_size() instead of used_size()
      
      * fixup: Fix and document allocation offset
      
      * fixup: Remove unnecessary multiplication
      
      * fixup: Fix comments
      
      * fixup: Remove Arch installation instructions
      
      * Revert "Fix test"
      
      This reverts commit 292c177d.
      
      * fixup: Remove unused code, improve import
      
      * fixup: Proper alignment
      
      * fixup: Do not use internal constant in public description
      
      * fixup: Add comment regarding invariants
      
      * fixup: Move assertion to compile-time check
      c3bee593
    • 郭光华's avatar
      e920bd2f
  14. Jan 17, 2019
    • Benjamin Kampmann's avatar
      Simplier and cleaner implementation of #1468 (#1471) · 704f0490
      Benjamin Kampmann authored
      * Simplier and cleaner implementation of #1468
      
      * move AppInfo into base_path
      
      * default to executable_name rather than pretty visible name
      704f0490
    • Benjamin Kampmann's avatar
    • Sergei Pepyakin's avatar
      Contracts module rejig (#1358) · 8ef14908
      Sergei Pepyakin authored
      
      
      * Move prepare under code.
      
      * Schedule update
      
      * CodeHash
      
      * create takes code_hash
      
      * pass mem def and use code in vm::execute
      
      * Actually save and load code
      
      * Use T::Hash as CodeHash
      
      * Explicit entrypoint name
      
      * Return code_hash and deposit an Event
      
      * Charge for deployed code with gas.
      
      * ImportSatisfyCheck and FunctionImplProvider
      
      * Progress.
      
      * Use new infrastructure for checking imports
      
      * Rename entrypoint to entrypoint_name
      
      * Use strings instead of a Error enum
      
      * Clean
      
      * WIP
      
      * Fix macro_define_env test.
      
      * Fix vm code tests.
      
      * Remove tests for now.
      
      * Fix borked merge
      
      * Fix build for wasm
      
      * fmt
      
      * Scaffolding for abstracting vm.
      
      * Hook up execution to exec layer.
      
      * Fix vm tests.
      
      * Use schedule directly in WasmLoader
      
      * Implement test language.
      
      * Add input_data test.
      
      * Max depth test
      
      * ext_caller
      
      * Simplify test.
      
      * Add TODO
      
      * Some tests and todos.
      
      * top_level
      
      * Clean.
      
      * Restore a couple of integration tests.
      
      * Add a few comments.
      
      * Add ext_address runtime call.
      
      * Deduplicate caller/self_account
      
      * Add not_exists test.
      
      * Change bool to TransferCause.
      
      * Add address tests.
      
      * Remove output_buf from parameter.
      
      * return from start fn.
      
      * Smart gas meter
      
      * Tracing
      
      * Fix prepare tests.
      
      * Code moving
      
      * Add ExecFeeToken
      
      * Use tokens everywhere.
      
      * Make it compile in no_std.
      
      * Lift all test requirements to TestAuxiliaries
      
      * A minor clean
      
      * First create tests
      
      * Remove unneeded TODO
      
      * Docs.
      
      * Code shuffling
      
      * Rename create → instantiate
      
      * Add test address.
      
      * Code shuffling
      
      * Add base_fee tests.
      
      * rejig the code
      
      * Add some comments
      
      * on_finalise comment
      
      * Move event deposit further
      
      * Update Cargo.lock
      
      * Use crates.io version of pwasm-utils
      
      * Format todo comments
      
      * Fix formatting
      
      * Comments
      
      * EmptyOutputBuf and OutputBuf split.
      
      * Restore code_hash
      
      * Fix node-executor.
      
      * Fix typo
      
      * Fix fmt
      
      * Update srml/contract/src/account_db.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Line wraps
      
      * Wrapping macros
      
      * Add _ prefix
      
      * Grumbles
      
      * Doc updates.
      
      * Update srml/contract/src/wasm/mod.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/lib.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Add comment
      
      * Use saturation to signal overflow
      
      * Add prepare_test! macro
      
      * Require deploy function.
      
      * Add entry point tests
      
      * Add comment.
      
      * Rename code → code_cache to better describe
      
      * Get rid of weird match!
      
      * Recompile binaries
      
      * Add comments
      
      * refuse_instantiate_with_value_below_existential_deposit
      
      * Little fix
      
      * Make test more complete
      
      * Clean
      
      * Add integration test for instantiation
      
      * Rebuild runtime.
      
      * Add some tests.
      
      * Attach an issue to a TODO
      
      * Attach another issue
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/exec.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Update srml/contract/src/exec.rs
      
      Co-Authored-By: default avatarpepyakin <[email protected]>
      
      * Recompile node_runtime
      8ef14908
    • thiolliere's avatar
      impl HasCompact for Perbill and Permill (#1411) · 8b679660
      thiolliere authored
      * impl Compact<> and HasCompact for Permill Perbill
      
      * update parity-codec to 2.2
      
      * add Cargo.lock
      
      * add lock and build for runtime
      
      * rebuild Cargo.lock after rebase
      8b679660
  15. Jan 16, 2019
    • Pierre Krieger's avatar
      Update libp2p-kad and libp2p-secio (#1447) · 553e78d0
      Pierre Krieger authored and asynchronous rob's avatar asynchronous rob committed
      * Update libp2p-kad and libp2p-secio
      
      * Fix concern
      553e78d0
    • Gav Wood's avatar
      Split Indices module from Balances (#1404) · defa2ec3
      Gav Wood authored
      * Indices module
      
      * Remove indices stuff from balances
      
      * Rejob node, move Lookup into system.
      
      * Fix up some modules.
      
      * Fix democracy tests
      
      * Fix staking tests
      
      * Fix more tests
      
      * Final test fixes
      
      * Bump runtime versions
      
      * Assets uses compact dispatchers
      
      * Contracts module uses indexed addressing
      
      * Democracy has more compact encoding
      
      * Example now demonstrates compact eencoding
      
      * Sudo uses indexed address
      
      * Upgrade key also uses indexed lookups
      
      * Assets more compact types.
      
      * Fix test
      
      * Rebuild runtime, whitespace
      
      * Remove TOODs
      
      * Remove TODOs
      
      * Add a couple of tests back to balances.
      
      * Update lib.rs
      
      * Update lib.rs
      defa2ec3
  16. Jan 14, 2019
  17. Jan 11, 2019
  18. Jan 10, 2019