Marek Kotewicz
5cf6684461
fix traces, removed bloomchain crate, closes #7228 , closes #7167 ( #7979 )
2018-02-23 10:29:11 +01:00
Marek Kotewicz
73756ce262
simplify compression and move it out of rlp crate ( #7957 )
...
* simplify compression and move it out of rlp crate
* removed lazy_static dependency from rlp
2018-02-23 10:12:52 +01:00
Marek Kotewicz
ee93be80c0
removed old migrations ( #7974 )
...
* removed old migrations
* improve SimpleMigration
* fixed migration tests
* fixed redundant whitespace
* add ToV13 migration which removes bloom groups
* bump CURRENT_VERSION of db
2018-02-22 14:53:10 +01:00
Tomasz Drwięga
d90ab40a78
Detect too large packets in snapshot sync. ( #7977 )
2018-02-22 14:52:29 +01:00
Marek Kotewicz
f8a2e53f3e
fixed broken logs ( #7934 )
...
* fixed broken logs
* bring back old lock order
* removed bloom groups from blockchain
* revert unrelated changes
* simplify blockchain_block_blooms
2018-02-22 11:22:56 +01:00
Marek Kotewicz
5b4abec2db
removed redundant Bloom conversions ( #7932 )
...
* removed redundant Bloom conversions
* fixed broken tests
2018-02-19 13:08:33 +00:00
Nikolay Volf
684322cd6f
Kovan WASM fork code ( #7849 )
...
* kovan fork code
* introduce ethcore level vm_factory and let it fail
* fix json tests
* wasmcosts as option
* review changes
* wasm costs in parser
* fix evm tests
* review fixes
* fix test
* remove redundant json field
2018-02-19 12:27:42 +01:00
Marek Kotewicz
605f3b0381
bring back trie and triehash benches ( #7926 )
2018-02-19 12:03:54 +01:00
Marek Kotewicz
4bda6efed0
removed redundant PodAccount::new method ( #7928 )
...
* removed redundant PodAccount::new method
* fixed failing test
2018-02-19 10:58:04 +01:00
Marek Kotewicz
b77771171d
removed dummy wrapper structure - LogGroupPosition ( #7922 )
2018-02-19 10:52:33 +01:00
Marek Kotewicz
76a098114f
simplify Client::filter_traces method ( #7936 )
2018-02-18 23:02:02 +01:00
Pierre Krieger
364a1fa5a8
Fix a division by zero in light client RPC handler ( #7917 )
2018-02-17 21:54:39 +01:00
Marek Kotewicz
f905a1676f
triehash optimisations ( #7920 )
2018-02-16 20:24:16 +01:00
Marek Kotewicz
ff0c44c060
removed redundant Blockchain::db method ( #7919 )
2018-02-16 19:43:19 +01:00
Marek Kotewicz
ec34d50459
removed redundant Blockchain::rewind method ( #7918 )
2018-02-16 19:43:05 +01:00
Tomasz Drwięga
236a4aac22
Pending transactions subscription ( #7906 )
...
* Pending transactions subscription.
* Pending transactions Pub-Sub
* Add light client support.
* Remove redundant Ok
2018-02-16 16:51:34 +01:00
Marek Kotewicz
899dd0ff4b
removed redundant otry! macro from ethcore ( #7916 )
...
* removed redundant otry! macro from ethcore
* removed redundant otry! macro from parity
2018-02-16 16:37:12 +01:00
Marek Kotewicz
c6b931766c
Make block generator easier to use ( #7888 )
...
* Make block generator easier to use
* applied review suggestions
* rename BlockMetadata -> BlockOptions
* removed redundant uses of blockchain generator and genereator.next().unwrap() calls
2018-02-16 10:11:29 +01:00
Tomasz Zdybał
f8618dd02a
ECIP 1041 - Remove Difficulty Bomb ( #7905 )
...
Enable difficulty bomb defusion at block:
- 5900000 on Ethereum Classic mainnet,
- 2300000 on morden testnet.
Reference:
https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1041.md
2018-02-16 10:09:49 +01:00
André Silva
aab63c339d
Aura: Broadcast empty step messages instead of creating empty blocks ( #7605 )
...
* aura: broadcast empty step message instead of sealing empty block
* aura: add empty_step messages to seal
* aura: include parent_hash in empty step message
* aura: verify received empty step messages
* aura: verify empty step messages in block
* aura: fix dead lock on empty_steps
* aura: fix EmptyStep Encodable
* aura: take number of empty steps into account in chain score
* aura: use empty step signers for finality
* aura: add empty "empty step" messages to seal when reading from spec
* aura: fix EmptyStep rlp encoding
* aura: use Vec<u8> instead of Bytes
* aura: fix block empty step verification
* Update .gitlab-ci.yml
fix lint
* aura: fix accumulation of empty step signatures for finality
* aura: include empty steps in seal signature
* aura: configurable max number of empty steps
* engine: pass block header to seal_fields method
This is necessary to make the number of seal fields dynamic,
e.g. activating a transition on a certain block number that changes
the seal.
* aura: add transition to enable empty step messages
* aura: clear old empty step messages on verify_block_external
* aura: ignore empty step messages from the future
* aura: report skipped primaries when empty steps are not enabled
* aura: fix tests
* aura: report misbehavior
* aura: add tests for rolling finality with multiple signatures
* engine: fix validator set test
In this test the block validation wasn't failing because the block was in the
future (expected failure) but was instead failing because the author of the
block isn't the expected authority. Since we added reporting of blocks produced
by the wrong authority this test started failing.
* aura: reward all the authors of empty step messages
* aura: fix reward attribution for new blocks
* aura: add tests for empty steps broadcasting and inclusion in blocks
* aura: reduce size of empty step messages in seal
* aura: add test for empty step inclusion in blocks
* aura: add test for rewarding of empty steps
* aura: add test for empty steps validation
* aura: fix rlp encoding of sealed empty step
* aura: fix grumbles
2018-02-15 01:39:29 +01:00
André Silva
d1815eec55
Fix wallet import ( #7873 )
...
* rpc: generate new account id for imported wallets
* ethstore: handle duplicate wallet filenames
* ethstore: simplify deduplication of wallet file names
* ethstore: do not dedup wallet filenames on update
* ethstore: fix minor grumbles
2018-02-14 14:21:58 +01:00
Svyatoslav Nikolsky
1ca1fba8cf
read registry_address from given block ( #7866 )
2018-02-12 18:02:48 +01:00
Alexey
a30de1b8d8
Clean up docs formatting for Wasm runtime ( #7869 )
...
* Clean up docs formatting for Wasm runtime
* Update runtime.rs
2018-02-12 17:59:41 +01:00
Nikolay Volf
fab03398dd
disable internal memory ( #7842 )
2018-02-12 11:19:43 +01:00
Marek Kotewicz
c060d9584d
ethabi version 5 ( #7723 )
...
* Refactor updater to use ethabi-derive
* Grumble: do_call type alias
* Empty commit to trigger test re-run
* migration to ethabi-5.0
* migration to ethabi-5.0 in progress
* use ethabi_deriven to generate TransactAcl contract
* use ethabi_deriven to generate Registry contract
* hash-fetch uses ethabi_derive, removed retain cycle from updater, fixed #7720
* node-filter crate uses ethabi_derive to generate peer_set contract interface
* use LruCache in node-filter instead of HashMap
* validator_set engine uses ethabi_derive
* ethcore does not depend on native_contracts
* miner does no depend on native_contracts
* secret_store does not use native_contracts (in progress)
* removed native-contracts
* ethcore and updater does not depend on futures
* updated ethereum-types
* fixed all warnings caused by using new version of ethereum-types
* updated ethabi_derive && ethabi_contract to get rid of warnings
* removed another retain cycle in updater, fixed following minor version on update
* moved contracts out of native_contracts res
* updated ethabi_contract
* fixed failing test
* fixed failing test
* there is no need to create two contracts of the same kind any more
* simplify updater::ReleaseTrack conversion into u8 and add several tests for it
* applied review suggestions
* applied review suggestions
2018-02-09 09:32:06 +01:00
Pierre Krieger
2c60a53fef
Randomize the peer we dispatch to ( #7844 )
2018-02-08 21:36:46 +01:00
Tomasz Drwięga
a59f6d9bd2
Move updater metadata to Cargo.toml of parity-version. ( #7832 )
2018-02-08 12:38:56 +01:00
Afri Schoedon
a487182e92
Add new EF ropstens nodes. ( #7824 )
...
* Add new EF ropstens nodes.
* Fix tests
2018-02-08 12:38:18 +01:00
Nikolay Volf
0a7cebe316
adjust storage update evm-style ( #7812 )
2018-02-06 11:57:29 +01:00
Nikolay Volf
fb4582a90e
wasmi interpreter ( #7796 )
2018-02-05 20:59:27 +01:00
Afri Schoedon
0ea1c41573
Update ropsten.json ( #7776 )
2018-02-01 16:23:46 +00:00
Afri Schoedon
6dec16bb41
Enable byzantium features on non-ethash chains ( #7753 )
...
* Enable byzantium on dev chain
* Enable byzantium on constractor spec
* Enable byzantium on aura specs
* Enable byzantium on tendermint chain spec
* Enable byzantium on null chain spec
* Fix tests
* Fix test
2018-02-01 13:42:56 +01:00
Dmitry Kashitsyn
a412f7cca6
Removes redundant parentheses, whitelists them in generated code ( #7721 )
2018-01-31 09:48:37 +01:00
Marek Kotewicz
f43e355254
Replace RandomTempDir with tempdir::Tempdir ( #7624 )
...
* Remove GuardedTempResult
* Remove RandomTempPath
* ethcore does not depend on devtools
2018-01-19 17:32:53 +01:00
Marek Kotewicz
6bebb9e74a
Moved StopGaurd to it's own crate ( #7635 )
2018-01-19 13:46:31 +01:00
Marek Kotewicz
d430e7f4e2
Updated dependencies ( #7628 )
...
* Updated few dependencies
* Updated parking_lot to 0.5
* Updated backtrace to 0.3.5
* Updated crossbeam to 0.3
2018-01-19 13:46:11 +01:00
Tomasz Drwięga
ad44855a1b
Fix Temporarily Invalid blocks handling ( #7613 )
...
* Handle temporarily invalid blocks in sync.
* Fix tests.
2018-01-19 10:38:59 +01:00
Robert Habermeier
2c426defd9
remove check_hangup hack now that is_canceled exists ( #7620 )
2018-01-18 18:19:04 +01:00
Tomasz Drwięga
709fbff067
Std-json format for VM traces ( #7262 )
...
* Std-json logging.
* fixed merge with master
2018-01-18 10:32:22 +01:00
Marek Kotewicz
0c01db4a49
separated ethcore_migrations from ethcore ( #7586 )
...
* separated ethcore_migrations from ethcore
* fixed authorship nitpick
* make ethcore_migrations related exports and imports more consistent
2018-01-17 22:11:13 +01:00
Marek Kotewicz
9adee532a0
bump some of our core dependencies ( #7563 )
...
* updated ethereum-types and tiny-keccak
* Updated several deps
* Updated several more dependencies
* Modify dummy file to trigger ci
* fixed update of memmap to 0.6 in ethash crate
* Fixed fetch after update to latest reqwest
* Updated jsonrpc-core with fixes for serde
* add expects in util/version/build.rs
2018-01-17 11:45:29 +01:00
Marek Kotewicz
7d49dd4727
Fixed delegatecall's from/to ( #7568 )
...
* Fixed delegatecall's from/to, closes #7166
* added tests for delegatecall traces, #7167
2018-01-17 10:44:11 +01:00
Marek Kotewicz
36ba004c29
removed redundant ethcore/basic_types.rs ( #7584 )
2018-01-17 10:35:43 +01:00
Alexey
534692cdae
[Wasm] memcmp fix and test added ( #7590 )
...
* [Wasm] memcmp fix and test added
* [Wasm] use reqrep_test! macro for memcmp test
2018-01-17 13:13:17 +04:00
Robert Habermeier
c7aed335ce
update back-references more aggressively after answering from cache ( #7578 )
2018-01-17 09:45:36 +01:00
Alexey
d927320719
[WASM] mem_cmp added to the Wasm runtime ( #7539 )
...
* mem_cmp added to the Wasm runtime
* schedule.wasm.mem_copy to schedule.wasm.mem_cmp for mem_cmp
2018-01-15 18:24:24 +04:00
Marek Kotewicz
668d910c44
bloom refactor ( #7475 )
...
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor finished
* cleanup bloom mess
* simplify usage of Bloom in few places
* removed obsolete util/src/lib.rs
* removed commented out code
* ethereum-types 0.1.4
* updated ethereum-types and tiny-keccak
2018-01-14 22:43:28 +01:00
Tomasz Drwięga
f044b61f42
Extract some parts of miner from ethcore. ( #7353 )
...
* Move miner away from ethcore.
* Fix ethcore to use miner/transaction.
* Fix tests and warnings.
* fixed incorrect merge of the test in the documentation
2018-01-11 17:49:10 +01:00
Marek Kotewicz
e95b093483
dissolve util ( #7460 )
...
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor in progress
* ethereum-types refactor finished
* removed obsolete util/src/lib.rs
* removed commented out code
2018-01-10 15:35:18 +03:00
tzapu
df5d27d516
added a new RPC call trace_replayBlockTransactions ( #7366 )
...
* intial add trace_replayBlockTransactions
* cleanup timing calls
add execution proof
* WIP implementing changes
* fix for trace_replayBlockTransactions rpc call
* cleanup comments
* cleanup, proof,
can't workout lifetime issues yet
* Fix lifetimes issue.
* naive rpc test
* updated docs
2018-01-10 11:34:34 +01:00
Svyatoslav Nikolsky
b685b7fae3
SecretStore: tx retry pattern ( #7323 )
...
* SecretStore: auto migrate initial commit
* SecretStore: flush automigrate
* SecretStore: debug flush
* SecretStore: added migration to KeyServerSet contract
* SecretStore: flush automigrate
* SecretStore: flush before testing
* SecretStore: flush
* SecretStore: flush
* SecretStore: bunch of tests for simple ConnectionTrigger && KeyServerSet
* SecretStore: started work on TriggerWithMigration tests
* SecretStore: maintain_session tests
* SecretStore: updated some comments
* SecretStore pass migration_id to ServerSetChangeSession
* SecretStore: fixed lock scope
* SecretStore: fixed error response condition
* SecretStore: fixed ServerSetChange session auto-creation
* SecretStore: update active migration in connector
* removed commented code
* SecretStore: fixed tests compilation
* SecretStore: marked test-related unimplemented-s
* SecretStore: labeled all SS TODOs
* SecretStore: do not read auto-migration stuff when auto-migration is disabled + stripped KeyServerSet contract ABI
* SecretStore: ignore duplicated addresses in KeyServerSet
* fied compilation
* SecretStore: wait for N block confirmations before starting auto-migration
* SecretStore: more tests for migration delay
* SecretStore: clear current nodes set when KSS contract is uninstalled
* SecretStore: retry transaction interval
2018-01-10 11:33:45 +01:00
Tomasz Drwięga
e4bd4ed060
Use sync wrapper instead of Mutex ( #7456 )
2018-01-09 16:10:39 +01:00
Afri Schoedon
a553485bbd
Update Parity Mainnet Bootnodes ( #7476 )
...
* Update Parity Mainnet Bootnodes
* Replace the Azure HDD bootnodes with the new ones :)
2018-01-08 15:06:08 +01:00
Tomasz Drwięga
33b8f28f62
Advance AuRa step as far as we can and prevent invalid blocks. ( #7451 )
...
* Advance AuRa step as far as we can.
* Wait for future blocks.
2018-01-08 14:46:11 +01:00
Afri Schoedon
36e230ee16
Expanse Byzantium update w/ correct metropolis difficulty increment divisor ( #7463 )
...
* Byzantium Update for Expanse
Here the changes go. Hope I didnt miss anything.
* expip2 changes - update duration limit
* Fix missing EXPIP-2 fields
* Format numbers as hex
* Fix compilation errors
* Group expanse chain spec fields together
* Set metropolisDifficultyIncrementDivisor for Expanse
* Revert #7437
* Add Expanse block 900_000 hash checkpoint
2018-01-05 13:49:07 +01:00
5chdn
27d8befbad
Remove expanse from available chains
2018-01-03 13:24:27 +01:00
Tomasz Drwięga
56311cf0b5
Merge branch 'master' into td-strict-config
2018-01-03 11:07:08 +01:00
Tomasz Drwięga
e439eae54f
Enable strict config parsing.
2018-01-03 11:05:53 +01:00
André Silva
e114b0b28d
Upgrade to RocksDB 5.8.8 and tune settings to reduce space amplification ( #7348 )
...
* kvdb-rocksdb: update to RocksDB 5.8.8
* kvdb-rocksdb: tune RocksDB options
* Switch to level-style compaction
* Increase default block size (16K), and use bigger blocks for HDDs (64K)
* Increase default file size base (64MB SSDs, 256MB HDDs)
* Create a single block cache shared across all column families
* Tune compaction settings using RocksDB helper functions, taking into account
memory budget spread across all columns
* Configure backgrounds jobs based on the number of CPUs
* Set some default recommended settings
* ethcore: remove unused config blockchain.db_cache_size
* parity: increase default value for db_cache_size
* kvdb-rocksdb: enable compression on all levels
* kvdb-rocksdb: set global db_write_bufer_size
* kvdb-rocksdb: reduce db_write_bufer_size to force earlier flushing
* kvdb-rocksdb: use master branch for rust-rocksdb dependency
2018-01-03 11:00:37 +01:00
Marek Kotewicz
6a01113610
Merge pull request #7412 from paritytech/td-trace-failed-calls
...
Fix tracing failed calls.
2018-01-02 15:43:33 +01:00
Marek Kotewicz
f3e7d94fc4
Merge pull request #7368 from paritytech/td-future-blocks
...
Wait for future blocks in AuRa
2018-01-02 14:21:50 +01:00
Tomasz Drwięga
c6aea0cae6
Move StateDB to RwLock
2018-01-02 09:43:08 +01:00
Tomasz Drwięga
67a74e155d
Fix tracing failed calls.
2017-12-29 18:11:55 +01:00
Marek Kotewicz
2586eaef92
Merge pull request #7359 from VladLupashevskyi/transactions-permission-contract-fix
...
Added checking tx-type using transactions permission contract for miners
2017-12-29 11:46:10 +01:00
debris
7b40f1cfe9
Merge branch 'master' into dircrate2
2017-12-29 10:45:11 +01:00
Marek Kotewicz
f8bd6b9f63
Merge pull request #7101 from paritytech/secretstore_kovan
...
SecretStore: Kovan integration initial version
2017-12-29 05:31:51 -04:00
Tomasz Drwięga
48a15cecf8
Update bootnodes ( #7363 )
...
* Updating mainnet bootnodes.
* Add additional parity-beta bootnodes.
* Restore old parity bootnodes and update foudation bootnodes
2017-12-28 15:12:19 +01:00
Vlad Lupashevskyi
45116099c5
Merge remote-tracking branch 'remotes/upstream/master' into transactions-permission-contract-fix
2017-12-28 12:56:21 +02:00
Tomasz Drwięga
a15f62d907
Merge branch 'master' into td-future-blocks
2017-12-27 11:01:08 +01:00
Svyatoslav Nikolsky
c0e7abcc81
Merge branch 'master' into secretstore_kovan
2017-12-27 11:44:28 +03:00
Nicolas Ochem
2e12a2db50
Fix #6209 - introduce standalone dir crate
...
* created the dir crate in util
* moved code from ethstore/src/dir/paths.rs to dir crate
* rename dir module in ethstore to accounts_dir to distinguish it
from the dir crate
* changes after @tomusdrw on #6952
2017-12-26 00:54:34 -08:00
Vlad Lupashevskyi
31ffb467f5
Passing verify tx errors to the caller
2017-12-23 00:00:27 +02:00
Vlad Lupashevskyi
0d5603eece
Use is_err instead of match
2017-12-22 23:14:24 +02:00
Vlad Lupashevskyi
d6ae6e315e
Check tx-type before importing transactions to the queue
2017-12-22 22:50:09 +02:00
Vlad Lupashevskyi
9d35cc1881
"from" replaced with ".into()"
2017-12-22 22:48:37 +02:00
Nikolay Volf
82340c058a
Wasm runtime update ( #7356 )
...
* call augmented, wasm-tests updated
* fix all call tests
* fix comments
2017-12-22 21:54:35 +03:00
Marek Kotewicz
d80dd81d77
parity-version pr reopen ( #7136 )
...
* parity-version module split from util
removed unused util deps and features
trigger buildbot again
only kvdb links rocksdb
snappy linker issues
* rm snappy
* fixed old version imports
2017-12-22 09:37:39 -04:00
Marek Kotewicz
7c24d0665e
Merge pull request #7355 from paritytech/td-clippy
...
Get rid of clippy remainings.
2017-12-22 07:09:26 -04:00
Marek Kotewicz
6f516607a1
Merge pull request #7357 from paritytech/unwrap-or
...
Avoid using ok_or with allocated argument
2017-12-22 06:55:37 -04:00
Nicolas Gotchac
276496fb4b
Enable traces for DEV chain ( #6949 ) ( #7327 )
2017-12-22 06:33:17 +03:00
Vlad Lupashevskyi
24378f3c44
Added checking tx-type using transactions permission contract for miners
2017-12-21 22:42:36 +02:00
Tomasz Drwięga
d6f160e868
Don't check max.
2017-12-21 16:16:55 +01:00
Tomasz Drwięga
7d4e4c7a62
Mark future blocks as temporarily invalid.
2017-12-21 15:34:27 +01:00
Yurii Rashkovskii
d5b81ead71
Problem: AuRa's unsafeties around step duration ( #7282 )
...
Firstly, `Step.duration_remaining` casts it to u32, unnecesarily
limiting it to 2^32. While theoretically this is "good enough" (at 3
seconds steps it provides room for a little over 400 years), it is
still a lossy way to calculate the remaining time until the next step.
Secondly, step duration might be zero, triggering division by zero
in `Step.calibrate`
Solution: rework the code around the fact that duration is
typically in single digits and never grows, hence, it can be represented
by a much narrower range (u16) and this highlights the fact that
multiplying u64 by u16 will only result in an overflow in even further
future, at which point we should panic informatively (if anybody's
still around)
Similarly, panic when it is detected that incrementing the step
counter wrapped around on the overflow of usize.
As for the division by zero, prevent it by making zero an invalid
value for step duration. This will make AuRa log the constraint
mismatch and panic (after all, what purpose would zero step duration
serve? it makes no sense within the definition of the protocol,
as finality can only be achieved as per the specification
if messages are received within the step duration, which would violate
the speed of light and other physical laws in this case).
2017-12-21 14:59:09 +01:00
NikVolf
516725abe4
ok_or -> ok_or_else
2017-12-21 16:50:58 +03:00
Tomasz Drwięga
00883e477a
Get rid of clippy remainings.
2017-12-21 11:27:26 +01:00
Marek Kotewicz
53dce9ff98
Merge pull request #7222 from ellaismer/ellaism
...
Add Ellaism coin in chain config
2017-12-19 09:34:21 -04:00
Tomasz Drwięga
9e7f5671a5
Merge branch 'master' into a5-kovan-bootnodes
2017-12-19 10:33:35 +01:00
Robert Habermeier
8f6f6a068e
detect different node, same-key signing in aura ( #7245 )
...
* detect different node, same-key signing in aura
* reduce scope of warning
2017-12-15 16:29:23 +01:00
5chdn
4a9a0f6f55
Update kovan boot nodes
2017-12-15 15:29:48 +01:00
5chdn
0a808a1ac2
Improve chainspec formatting
2017-12-15 15:29:09 +01:00
Konstantin
bb1e03e9cb
new warp enodes ( #7287 )
...
* new warp enodes
* added one more warp enode; replaced spaces with tabs
2017-12-15 15:19:06 +01:00
Tomasz Drwięga
c731b5ef62
Update kovan HF block number. ( #7259 )
2017-12-12 16:03:28 +01:00
André Silva
fcddc7751a
Reduce max block timestamp drift to 15 seconds ( #7240 )
...
* reduce max block timestamp drift to 15 seconds
* add test for block timestamp validation within allowed drift
2017-12-08 11:43:31 +01:00
Robert Habermeier
3cb4d81eb1
Fix aura difficulty race ( #7198 )
...
* Fix Aura difficulty race
* fix test key
* extract out score calculation
* fix build
2017-12-07 12:17:11 +01:00
Svyatoslav Nikolsky
5d792324e6
Merge branch 'master' into secretstore_kovan
2017-12-06 19:56:54 +03:00
Ellaismer
dd0fba96a4
Add registrar for ellaism
...
Provided by @5chdn
2017-12-06 22:46:19 +08:00
Ellaismer
2d3073fc02
Remove compatibility fields to pass chainspec test for Ellaism
2017-12-06 21:01:03 +08:00
Ellaismer
dcf6e1d83d
Add basic Elliasm config
2017-12-06 20:46:24 +08:00
Takehiro Miyao
3284020b04
mistake comment in calc difficulty ( #7154 )
2017-12-05 16:06:04 +01:00
Tomasz Drwięga
7e3872fddc
Maximum uncle count transition ( #7196 )
...
* Enable delayed maximum_uncle_count activation.
* Fix tests.
* Defer kovan HF.
2017-12-05 15:57:45 +01:00
Robert Habermeier
e85c98e09a
Merge pull request #7075 from miyao-gmo/feature/estimate_gas_limit
...
escape inifinite loop in estimte_gas
2017-12-04 15:29:23 +01:00
Arkadiy Paronyan
dde6baedec
Removed ethcore-util dependency from ethcore-network ( #7180 )
...
* Removed ethcore-util dependency
* Removed snappy
2017-12-02 10:08:04 +01:00
NikVolf
4f12e1dab1
pwasm-run-test utility upgrade
2017-12-01 16:41:09 +03:00
Takehiro Miyao
ad01f99c44
upper limit is gas limit * 10 in estimate gas
2017-12-01 11:12:11 +00:00
Marek Kotewicz
e8787c1acf
Merge pull request #7142 from paritytech/pwasm-run
...
WASM test runner utility
2017-11-27 10:16:28 +01:00
Sergey Pepyakin
359b4de3ff
WASM Remove blockhash error ( #7121 )
...
* Remove blockhash error
* Update tests.
2017-11-26 23:18:58 +03:00
NikVolf
13f3113826
pwasm-run-test utility
2017-11-26 00:06:57 +03:00
Marek Kotewicz
68db425fe8
Merge pull request #7067 from sorpaas/patch-1
...
ECIP-1039: Monetary policy rounding specification
2017-11-24 15:49:33 +01:00
Wei Tang
8e89be775c
Wrong era used in ECIP1017 test
...
It is era 49, and should correspond to ECIP1017/ECIP1039's era 50.
2017-11-24 20:17:26 +08:00
Wei Tang
bef85fb876
Add test for ECIP1017 at block 250000000
2017-11-24 19:31:48 +08:00
Svyatoslav Nikolsky
333e0e1637
SecretStore: publish key only if requested through contract
2017-11-24 10:26:24 +03:00
Svyatoslav Nikolsky
12e9c1cebc
Merge branch 'master' into secretstore_kovan
2017-11-23 07:27:13 +03:00
Svyatoslav Nikolsky
ea9c8a174c
SecretStore: started adding tests for ServiceContractListener
2017-11-22 17:31:34 +03:00
Sergey Pepyakin
3716b09b2e
Update wasm-tests
2017-11-21 17:03:14 +03:00
Sergey Pepyakin
66b2db0137
Update gas values
2017-11-21 17:03:14 +03:00
Sergey Pepyakin
7564b05572
Make storage_read/write return nothing
2017-11-21 17:03:13 +03:00
Sergey Pepyakin
3e4e00fc6a
spaces to tabs.
2017-11-21 15:39:34 +03:00
Svyatoslav Nikolsky
b5fad300ba
Merge branch 'master' into secretstore_kovan
2017-11-20 19:58:01 +03:00
Svyatoslav Nikolsky
af409eba07
SecretSTore: fix after merge from secretstore_kovan_1_8
2017-11-20 19:41:53 +03:00
Svyatoslav Nikolsky
3945a29ee6
SecretStore: mapping requests to KeyServer + requests retry
2017-11-20 19:03:31 +03:00
Svyatoslav Nikolsky
6618827d1a
SecretStore: cleaning up service contract listener
2017-11-20 19:03:22 +03:00
Svyatoslav Nikolsky
56875a83b3
SecretStore: Kovan flush2
2017-11-20 19:03:06 +03:00
Nikolay Volf
9798e3c45a
Update panic_payload.rs
2017-11-20 18:12:31 +03:00
Sergey Pepyakin
3d0616c1ae
Parse payload from panic
...
Impl payload
empty str is none
Update tests
Clean
Update wasm-tests
2017-11-20 13:09:57 +03:00
Robert Habermeier
81212c5031
Merge branch 'master' into upload-crates
2017-11-17 16:42:41 +01:00
Wei Tang
b35cc3f716
Change reward calculation to only use divide once
2017-11-16 12:34:04 +08:00
Wei Tang
2ca57d7cdb
ECIP-1039: Monetary policy rounding specification
...
Fix potential rounding errors between geth and parity in the long-term future.
2017-11-16 12:25:05 +08:00
Marek Kotewicz
605cd5cd9f
Merge pull request #7006 from paritytech/no-uncles
...
Disable uncles by default
2017-11-15 23:51:49 +01:00
Marek Kotewicz
0230a44b15
Merge pull request #7040 from paritytech/squashed_network_error_chain
...
squashed ethcore-network changes which introduce error-chain
2017-11-15 18:18:25 +01:00
debris
a22c48b6b0
removed redundant imports
2017-11-14 17:47:41 +01:00
Svyatoslav Nikolsky
abfb9fccd3
SecretStore: Kovan integration initial commit
2017-11-14 14:26:31 +03:00
debris
3cf52dac59
use error-chain in ethcore-network
2017-11-13 16:48:58 +01:00
Sergey Pepyakin
bcdfc50a0b
pwasm-std update ( #7018 )
2017-11-13 00:21:15 +03:00
Robert Habermeier
ec5519ccd1
rename hash crate to keccak-hash
2017-11-10 20:08:28 +01:00
Robert Habermeier
2288bcd1b4
Merge branch 'master' of github.com:paritytech/parity into upload-crates
2017-11-10 18:42:18 +01:00
Robert Habermeier
be092e7c09
prepare cargo configuration for upload of crates
2017-11-10 18:31:31 +01:00
Alexey
df49b4b065
Merge pull request #6967 from paritytech/wasm-elog
...
Events in WASM runtime
2017-11-10 18:03:32 +03:00
keorn
261c0d5368
no default uncles
2017-11-09 23:56:02 +00:00
Robert Habermeier
d701ed7262
Merge pull request #6874 from paritytech/light-local-tx
...
Get local transactions by hash in the light client
2017-11-07 11:23:40 -06:00
Robert Habermeier
acdec22d58
Merge branch 'master' into warn-blacklisted
2017-11-07 16:56:57 +01:00
Robert Habermeier
4a07010539
Merge branch 'master' into light-local-tx
2017-11-07 16:56:28 +01:00
Arkadiy Paronyan
85465fc0b1
Skip nonce check for gas estimation ( #6997 )
2017-11-07 09:21:30 +01:00
NikVolf
bed82e5cc0
elog (events) for wasm runtime
2017-11-05 18:54:35 +03:00
Tomasz Drwięga
ffee6aacff
Creating pending block with all transactions from the queue ( #6942 )
...
* Allow to include all queue transactions in pending block.
* Fix tests.
2017-11-03 15:20:20 +01:00
Dmitry Kashitsyn
713bba00ac
Removes FUTURE_QUEUE_LIMITS_SHIFT ( #6962 )
2017-11-02 15:06:17 +01:00
Nikolay Volf
f72858ee0a
Add hint in ActionParams for splitting code/data ( #6957 )
...
* Action params and embedded params handling
* fix namespaces
2017-11-02 12:49:57 +01:00
Tomasz Drwięga
0a69d5ac4c
Return decoded seal fields. ( #6932 )
2017-11-01 11:29:03 +01:00
Tomasz Drwięga
b861ad37a4
Reserve nonces for signing ( #6834 )
...
* Nonce future - reserve and dispatch
* Single thread nonce tests
* Track status of reserved nonces.
* Initialization of nonce reservations.
* Prospective Signer
* Fix cli tests.
2017-11-01 11:23:18 +01:00
Marek Kotewicz
39e27076ad
Merge pull request #6842 from paritytech/td-evm-json
...
Fix JSON tracing for sub-calls.
2017-10-29 21:47:14 -07:00
Tomasz Drwięga
8dfdebc2a2
Refactor static context check in CREATE. ( #6886 )
...
* Refactor static context check in CREATE.
* Fix wasm.
2017-10-25 11:27:18 +02:00
David Dorgan
bdf1e6afcc
Revert "Sync parity-ewf with parity"
...
This reverts commit f7ba063b22
.
2017-10-24 13:31:58 +01:00
David Dorgan
f7ba063b22
Sync parity-ewf with parity
2017-10-24 12:31:50 +01:00
Tomasz Drwięga
b98150526c
Fix serialization of non-localized transactions ( #6868 )
...
* Fix serialization of non-localized transactions.
* Return proper SignedTransactions representation.
2017-10-24 12:13:00 +02:00
Tomasz Drwięga
1253a5c577
Merge branch 'master' into td-evm-json
2017-10-24 09:16:51 +02:00
Robert Habermeier
dd13526f6c
warn when blacklisted account present in store
2017-10-24 09:04:28 +02:00
Robert Habermeier
965dff3d32
light: get local transactions by hash
2017-10-24 07:30:53 +02:00
Tomasz Drwięga
4ba2587226
Fix serialization of non-localized transactions.
2017-10-23 14:46:36 +02:00
Arkadiy Paronyan
097815cb71
Ethstore optimizations ( #6827 )
2017-10-20 20:20:41 +02:00
Tomasz Drwięga
2d222a5920
Capture traces and write some tests.
2017-10-20 16:06:36 +02:00
Tomasz Drwięga
4ac406da6b
Merge branch 'master' into td-evm-json
2017-10-20 13:36:45 +02:00
ia
bbe9d73e9a
Add ECIP1017 to Morden config ( #6810 )
...
* Add ECIP1017 setting to Morden config
* Convert spaces to tabs
* Update Morden bootnodes to match Geth
2017-10-20 12:37:37 +02:00
Dmitry Kashitsyn
153b8572dd
Fixes tests
2017-10-17 22:24:47 +07:00
Tomasz Drwięga
2d10cd0ecc
Fixing JSON WiP. Refactor & Write tests.
2017-10-17 14:54:56 +02:00
Dmitry Kashitsyn
c0fc83988f
Refactors ethcore to use journaldb crate ( #6693 )
2017-10-17 11:46:07 +07:00
debris
3830f9b464
fixed failing test
2017-10-16 22:12:17 +02:00
debris
95f0384510
Merge branch 'master' into ipc_cleanup
2017-10-16 18:19:41 +02:00
Marek Kotewicz
bb1be15dc4
Merge pull request #6792 from paritytech/kvdb_error
...
consistent KeyValueDB errors
2017-10-16 18:19:18 +02:00
debris
16d84f8ecf
finished removing ipc
2017-10-16 18:18:43 +02:00
debris
fa019bd03e
remove ipc codegen from ethcore
2017-10-16 17:50:25 +02:00
Arkadiy Paronyan
5b29b6d064
Squash remaining warnings ( #6789 )
...
* Fixed comment warnings
* Fixed remaining warnings
2017-10-16 12:31:52 +02:00
debris
6dc50d01b5
KeyValueDB trait uses errors instead of strings
2017-10-16 12:11:35 +02:00
Marek Kotewicz
44db0c55c5
Merge pull request #6720 from paritytech/kvdb_split
...
separated kvdb into 3 crates: kvdb, kvdb-memorydb && kvdb-rocksdb
2017-10-16 10:57:27 +02:00
Afri Schoedon
774598974e
Forward-port #6754 #6755 ( #6785 )
2017-10-16 10:56:23 +02:00
Marek Kotewicz
8365f4d80e
updated ethabi to version 4.0 ( #6742 )
...
* updated ethabi to version 4.0
* ethabi 4.0.1
2017-10-16 10:21:35 +02:00
debris
2ce0eae406
Merge branch 'master' into kvdb_split
2017-10-16 10:01:12 +02:00
Dmitry Kashitsyn
92a9fd3359
Uses dash instead of underscore in crate name
2017-10-16 11:05:54 +07:00
Dmitry Kashitsyn
4df541e47a
Refactors references to MemoryLruCache in ethcore ( #6693 )
2017-10-15 21:47:06 +07:00
debris
db3ff67182
Merge branch 'master' into kvdb_split
2017-10-15 16:40:20 +02:00
debris
616cafb04a
renamed kvdb_memorydb::in_memory -> kvdb_memorydb::create
2017-10-15 16:17:15 +02:00
debris
d88ec35a6a
Merge branch 'master' into kvdb_split
2017-10-15 15:55:44 +02:00
Dmitry Kashitsyn
3df67b376b
Removes redundant mut
in ethcore
2017-10-15 20:10:20 +07:00
Arkadiy Paronyan
b0c15497e1
Fixed kovan chain validation ( #6758 )
...
* Fixed kovan chain validation
* Fork detection
* Fixed typo
2017-10-14 21:59:26 +02:00
Marek Kotewicz
190c1dcede
removed redundant evm deps ( #6757 )
2017-10-14 19:29:09 +02:00
debris
b277c3810f
Merge branch 'master' into kvdb_split
2017-10-13 16:27:12 +02:00
Arkadiy Paronyan
691e93834c
Fixed modexp gas calculation overflow ( #6741 )
2017-10-13 16:06:53 +02:00
debris
5c220ab64b
Merge branch 'master' into kvdb_split
2017-10-13 12:18:49 +02:00
Arkadiy Paronyan
f3ea2f354e
v1.9.0 ( #6727 )
2017-10-12 23:44:02 +02:00
debris
f36b4e0fca
fixed wrong kvdb import in json_tests
2017-10-12 17:05:32 +02:00
Marek Kotewicz
e51e54eeeb
Merge pull request #6694 from paritytech/no-sleep
...
Prevent going offline when restoring or taking a snapshot
2017-10-12 15:54:29 +02:00
debris
eb526b7769
separated kvdb into 3 crates: kvdb, kvdb-memorydb && kvdb-rocksdb, #6693
2017-10-12 15:36:27 +02:00
arkpar
301190a16f
Fixed RETURNDATA out of bounds check
2017-10-12 12:57:27 +02:00
arkpar
99143c5872
Prevent going offline when restoring or taking snapshot
2017-10-12 12:37:03 +02:00
Marek Kotewicz
bfff19ca9f
Merge pull request #6705 from paritytech/serde-migration
...
Removes dependency on rustc_serialize (#5988 )
2017-10-11 18:17:40 +02:00
Arkadiy Paronyan
7029dda87c
Fixed potential exp len overflow ( #6686 )
2017-10-11 16:41:28 +02:00
Dmitry Kashitsyn
604cdde71d
Fixes bench and removes rustc_serialize dependency ( #5988 )
2017-10-11 17:39:12 +07:00
debris
025c5aebc9
Merge branch 'master' into difficulty-tests
2017-10-10 20:10:24 +02:00
Marek Kotewicz
6279ff32f5
Separate migrations from util ( #6690 )
...
* separate migration from util and make its dependencies into libs:
* snappy
* kvdb
* error
* common
* renamed common -> macros
* util error does not depend on snappy module
* ethsync does not depend on util nor ethcore_error
* nibbleslice and nibblevec merged with patricia_trie crate
* removed unused dependencies from util
* util journaldb traits does not need to be public
* util_error
* fixed ethcore compile error
* ignore .swo files
* Update chain.rs
2017-10-10 20:01:27 +02:00
arkpar
cc681c623f
Fixed tests after rename
2017-10-10 17:48:37 +02:00
arkpar
e5a7a674f9
Get rid of blockchain test warnings
2017-10-10 16:56:03 +02:00
arkpar
7234a7c630
Difficulty tests
2017-10-10 14:51:12 +02:00
Nikolay Volf
1601030081
WASM gas schedule ( #6638 )
...
* some failing tests
* finalize
* fallable -> fallible
* alter mul/div/static_i64
* Update schedule.rs
* to u32
* balance charge also
* review fixes
* remove redundant line
2017-10-09 13:12:58 +02:00
Marek Kotewicz
65ca2f9a07
Merge pull request #6660 from paritytech/byzantium-fork
...
Byzantium fork block number
2017-10-09 11:25:49 +02:00
Marek Kotewicz
de0d12d73c
Merge pull request #6652 from paritytech/returndatasize-builtin-fix
...
Fixed RETURNDATA size for built-ins
2017-10-09 11:24:34 +02:00
Robert Habermeier
b010fb5004
Light Client: fetch transactions/receipts by transaction hash ( #6641 )
...
* rpc: transaction/receipt requests made async
* rpc: light client fetches transaction and uncle by hash/index
* on_demand: request type for transaction index
* serve transaction index requests in light protocol
* add a test for transaction index serving
* fetch transaction and receipts by hash on light client
* fix decoding tests
* light: more lenient cost table parsing (backwards compatible)
* fix tests and warnings
* LES -> PIP
* Update provider.rs
* proper doc comments for public functions
2017-10-08 18:19:27 +02:00
Afri Schoedon
360ecd3728
Add Musicoin and MCIP-3 UBI hardfork. ( #6621 )
...
* Add musicoin chain spec.
* Add musicoin to parity node
* Add musicoin to the wallet
* Add i18n for musicoin
* Align musicoin chain spec with 1.8, ref #6134
* Update musicoin bootnodes
* Prepare MCIP-3 in musicoin chain spec.
* Update musicoin chain spec with contract addresses for MCIP-3
* Extend ethash params by MCIP-3
* Fix musicoin chain spec json
* Use U256 for block rewards.
* Update musicoin registrar
* Fix merge leftovers
* Update musicoin chain spec for latest master
* Bestow MCIP-3 block reward(s).
* Update musicoin registry once and for all
* Align MCIP-3 block reward with go implementation
* Remove mcip3 test chain spec from repository
* Update MCIP-3 block rewards
* Musicoin homestead transition is at 1_150_000
* Expect mcip3 transtion to be properly defined in chain spec.
* Panic handling for mcip to default to regular block rewards if not specified
* Giving mcip3 rewards a useful default value.
* Fix ethjson tests.
* Update musicoin chain spec
* Fix tests 0:)
* Add musicoin mcip3 era test spec.
* Update musicoin chain spec(s)
* Add tests for mcip3 era block rewards
* Fix tests
* Disable byzantium for musicoin
* Pass miner reward to the tracer.
* Allow modifying blockreward in MCIP-3 transition.
2017-10-08 18:17:59 +02:00
Robert Habermeier
59365b0133
fix aura backcompat: revert to manual encoding/decoding of transition proofs ( #6665 )
2017-10-06 17:36:26 +02:00
arkpar
07c63c14f3
Byzantium fork block number
2017-10-06 09:47:04 +02:00
arkpar
6a1eea1b3d
Fixed RETURNDATA size for built-ins
2017-10-05 19:31:29 +02:00
Robert Habermeier
bae6a5eeec
move additional_info to engines, fixes registry on non-ethash chains
2017-10-05 15:34:30 +02:00
Tomasz Drwięga
e8b418ca03
Update jsonrpc dependencies and rewrite dapps to futures. ( #6522 )
...
* Bump version.
* Fix RPC crate.
* Fix BoxFuture in crates.
* Compiles and passes tests!
* Get rid of .boxed()
* Fixing issues with the UI.
* Remove minihttp. Support threads.
* Reimplement files serving to do it in chunks.
* Increase chunk size.
* Remove some unecessary copying.
* Fix tests.
* Fix stratum warning and ipfs todo.
* Switch to proper branch of jsonrpc.
* Update Cargo.lock.
* Update docs.
* Include dapps-glue in workspace.
* fixed merge artifacts
* Fix test compilation.
2017-10-05 12:35:01 +02:00
fro
6956d218b5
address balance extern provided for wasm
2017-10-04 19:09:18 +03:00
Nikolay Volf
4260910db6
WASM Runtime refactoring ( #6596 )
...
* refactoring to new pwasm-std
* pass reference
* remove ref
* missing underscores
2017-10-04 13:15:59 +02:00
Svyatoslav Nikolsky
5e83ff8835
fix compilation
2017-10-03 12:59:48 +03:00
Anton Gavrilov
0a5c9b0465
Add pagination for trace_filter rpc method ( #6312 )
...
* Optional offset and count added on client level
* Rpc interface extended
* Tests corrected
* Filtering code refactored a little bit
* Offset type was changed to usize
* Handling of block hash in offset added
* Offset reworked to number
* Trailing comma removed
* Import for Quantity type added
* Offset and count moved into filter object
* Lost comma removed
* Return empty vec instead of None in case of incorrect range
2017-10-03 10:03:46 +02:00
Robert Habermeier
bc167a211b
Generalize engine trait ( #6591 )
...
* move common forks and parameters to common params
* port specs over to new format
* fix RPC tests
* parity-machine skeleton
* remove block type
* extract out ethereum-specific methods into EthereumMachine
* beginning to integrate Machine into engines. dealing with stale transitions in Ethash
* initial porting to machine
* move block reward back into engine
* abstract block reward logic
* move last hash and DAO HF logic into machine
* begin making engine function parameters generic
* abstract epoch verifier and ethash block reward logic
* instantiate special ethereummachine for ethash in spec
* optional full verification in verify_block_family
* re-instate tx_filter in a way that works for all engines
* fix warnings
* fix most tests, further generalize engine trait
* uncomment nullengine, get ethcore tests compiling
* fix warnings
* update a bunch of specs
* re-enable engine signer, validator set, and transition handler
* migrate basic_authority engine
* move last hashes into executedblock
* port tendermint
* make all ethcore tests pass
* json-tests compilation
* fix RPC tests: change in gas limit for new block changed PoW hash
* fix minor grumbles
* validate chainspecs
* fix broken import
* fix transaction verification for pre-homestead
2017-09-26 14:19:08 +02:00
Jef
5c08698fa0
Use memmap for dag cache ( #6193 )
...
* Rebase and fix compilation errors (tests not yet fixed)
* Use `debug_assert` over `assert`
* Fix tests
* Assert safety, clean up
* Fix up stale cache removal, move one assert to debug_assert
* Remove printlns
* Add licenses
* Fix benches
* Inline some no-ops in a hot loop that weren't being inlined
* Add spooky comment to make sure no-one removes the inlining annotations
* Minor cleanup
* Add option to switch between mmap and ram
* Flag ethash to use less memory when running light client
* Fix tests
* Remove todo comment (it's done)
* Replace assertion with error return
* Fix indentation
* Use union instead of `transmute`
* Fix benches
* Extract to constants
* Clean up and fix soundness holes
* Fix formatting
* Ignore missing-file errors
* Make incorrect cache size an error condition instead of a panic, remove dead code
* Fix compilation errors from rebase
* Fix compilation errors in tests
* Fix compilation errors in tests
2017-09-25 19:45:33 +02:00
Lorenzo Manacorda
aab1cf020c
Rename builder module to batch
2017-09-24 20:09:40 +02:00
Lorenzo Manacorda
5f025cc1b8
Rename Requests to Batch
2017-09-24 20:09:30 +02:00
Arkadiy Paronyan
4dc7d3dc45
Fixed receipt serialization and RPC ( #6555 )
2017-09-21 10:11:53 +02:00
Marek Kotewicz
f38d34919b
Random cleanups / improvements to a state ( #6472 )
2017-09-19 11:34:13 +02:00
Arkadiy Paronyan
1b6d840ada
Ropsten fork ( #6533 )
2017-09-18 11:12:42 +02:00
Arkadiy Paronyan
25b35ebddd
Byzantium updates ( #5855 )
...
* EIP-211 updates
* benchmarks
* blockhash instruction gas cost updated
* More benches
* EIP-684
* EIP-649
* EIP-658
* Updated some tests
* Modexp fixes
* STATICCALL fixes
* Pairing fixes
* More STATICALL fixes
* Use paritytech/bn
* Fixed REVERTing of contract creation
* Fixed more tests
* Fixed more tests
* Blockchain tests
* Enable previously broken tests
* Transition test
* Updated tests
* Fixed modexp reading huge numbers
* Enabled max_code_size test
* Review fixes
* Updated pairing pricing
* missing commas (style)
* Update test.rs
* Small improvements
* eip161abc
2017-09-15 21:07:54 +02:00
Hawstein
dd7a60c7a8
rename trie to patricia-trie
2017-09-15 11:49:26 +08:00
Hawstein
ade37be25b
separate trie from util and make its dependencies into libs:
...
* bytes
* hashdb
* memorydb
* nibbleslice
* nibblevec
2017-09-15 11:03:53 +08:00
Alexey
79659bdc76
WASM sha3 test ( #6512 )
...
* sha3 test for empty input implemented
* rename sha3-> keccak
* update keccak test. Now it expects input to hash
* fix gas_left in tests
2017-09-14 19:32:29 +02:00
Fredrik Harrysson
75b6a31e87
Trezor Support ( #6403 )
...
* Copy modal from keepkey branch and generalize
The keepkey PinMatrix modal needs to be the same for Trezor, but we
should probably try to keep it general since it can be used for both.
* Add trezor communication code
This is a result of much trial-and-error and a couple of dead-ends in
how to communicate and wire everything up.
Code here is still a bit WIP with lots of debug prints and stuff.
The test works though, it is possible to sign a transaction.
* Extend the basic lib to allow Trezor
This is kind of ugly and needs some cleanup and generalization. I’ve
just copy-pasted some things to bring in the trezor wallets. I’ve also
had to add a lock to the USB API so that only one thing talks to the
USB at once.
* Add RPC plumbing needed
We need to be able to get “locked” devices from the frontend to figure
out if we’re going to display the PinMatrix or not. Then we need to be
able to send a pin to a device.
* Add logic to query backend for Trezor and display PinMatrix
There’s a bug somewhere here because signing a transaction fails if you
take too long to press the confirm button on the device.
* Change back to paritytech branch
As my fork has been merged in.
* Converting spaces to tabs, as it should be
* Incorporate correct handling of EIP-155
Turns out the Trezor was adjusting the v part of the signature, and
we’re already doing that so it was done twice.
* Some circular logic here that was incorrect
BE-encoded U256 is almost the same as RLP encoded without the
size-byte, except for <u8 sized values. What’s really done is
BE-encoded U256 and then left-trimmed to the smallest size. Kind of
obvious in hindsight.
* Resolve issue where not clicking fast enough fails
The device will not repeat a ButtonRequest when you read from it, so
you need to have a blocking `read` for whatever amount of time that you
want to give the user to click. You could also have a shorter timeout
but keep retrying for some amount of time, but it would amount to the
same thing.
* Scan after pin entry to make accepting it faster
* Remove ability to cancel pin request
* Some slight cleanup
* Probe for the correct HID Version to determine padding
* Move the PinMatrix from Accounts to Application
* Removing unused dependencies
* Mistake in copying over stuff from keepkey branch
* Simplify FormattedMessage
* Move generated code to external crate
* Remove ethcore-util dependency
* Fix broken import in test
This test is useless without a connected Trezor, not sure how to make
it useful without one.
* Merge branch 'master' into fh-4500-trezor-support
# Conflicts:
# rpc/src/v1/helpers/dispatch.rs
* Ignore test that can't be run without trezor device
* Fixing grumbles
* Avoiding owning data in RPC method
* Checking for overflow in v part of signature
* s/network_id/chain_id
* Propagating an error from the HID Api
* Condensing code a little bit
* Fixing UI.
* Debugging trezor.
* Minor styling tweak
* Make message type into an actual type
This makes the message type that the RPC message accepts into an actual
type as opposed to just a string, based on feedback. Although I’m not
100% sure this has actually improved the situation.
Overall I think the hardware wallet interface needs some refactoring
love.
* Split the trezor RPC endpoint
It’s split into two more generic endpoints that should be suitable for
any hardware wallets with the same behavior to sit behind.
* Reflect RPC method split in javascript
* Fix bug with pin entry
* Fix deadlock for Ledger
* Avoid having a USB lock in just listing locked wallets
* Fix javascript issue (see #6509 )
* Replace Mutex with RwLock
* Update Ledger test
* Fix typo causing faulty signatures (sometimes)
* *Actually* fix tests
* Update git submodule
Needed to make tests pass
* Swap line orders to prevent possible deadlock
* Make setPinMatrixRequest an @action
2017-09-14 19:28:43 +02:00
ivegotasthma
e9abcb2f6d
Fix compiler warning ( #6491 )
2017-09-12 09:16:39 +02:00
Svyatoslav Nikolsky
03e039b13d
wasm: math_sub_with_overflow test ( #6474 )
2017-09-11 11:43:33 +02:00
Nicolas Gotchac
f1a050366f
Fix slow balances ( #6471 )
...
* Update token updates
* Update token info fetching
* Update logger
* Minor fixes to updates and notifications for balances
* Use Pubsub
* Fix timeout.
* Use pubsub for status.
* Fix signer subscription.
* Process tokens in chunks.
* Fix tokens loaded by chunks
* Linting
* Dispatch tokens asap
* Fix chunks processing.
* Better filter options
* Parallel log fetching.
* Fix signer polling.
* Fix initial block query.
* Token balances updates : the right(er) way
* Better tokens info fetching
* Fixes in token data fetching
* Only fetch what's needed (tokens)
* Fix linting issues
* Revert "Transaction permissioning (#6441 )"
This reverts commit eed0e8b03a
.
* Revert "Revert "Transaction permissioning (#6441 )""
This reverts commit 8f96415e58dde652e5828706eb2639d43416f448.
* Update wasm-tests.
* Fixing balances fetching
* Fix requests tracking in UI
* Fix request watching
* Update the Logger
* PR Grumbles Fixes
* PR Grumbles fixes
* Linting...
2017-09-10 18:03:35 +02:00
Nikolay Volf
ee14a3fb31
WASM runtime update ( #6467 )
...
* refactor to new parity-wasm
* more errors refactoring
* final test
* update tests
* fix merge bugs
2017-09-10 18:02:31 +02:00
Robert Habermeier
ffced4e17f
fix test build
2017-09-05 21:24:15 +02:00
Robert Habermeier
7d1c7a0474
allow optional casting of engine client to full client
2017-09-05 17:55:14 +02:00
Robert Habermeier
ad39446e87
Revert "fixed master ( #6465 )"
...
This reverts commit 899538ae25
.
2017-09-05 17:54:05 +02:00
debris
4e66d3ca21
fixed old import in json-tests
2017-09-05 15:25:06 +02:00
debris
14d00a7f72
Merge branch 'master' into util_error_chain
2017-09-05 14:58:35 +02:00
Marek Kotewicz
899538ae25
fixed master ( #6465 )
...
* fixed master
* Revert "Merge pull request #6370 from paritytech/light-poa"
This reverts commit 3c60f99def
, reversing
changes made to b731ccea18
.
2017-09-05 14:53:09 +02:00
Tomasz Drwięga
7462a69583
eth_call returns output of contract creations ( #6420 )
...
* eth_call returns output of contract creations
* Fix parameters order.
* Save outputs for light client as well.
2017-09-05 12:22:19 +01:00
debris
0a71ee95af
Merge branch 'master' of github.com:paritytech/parity into util_error_chain
2017-09-05 12:38:15 +02:00
Marek Kotewicz
c49beccadc
Merge pull request #6459 from paritytech/fo-6418-dont-export-bigint
...
Refactor: Don't reexport bigint from util
2017-09-05 12:38:03 +02:00
debris
3497eab26c
Merge branch 'fo-6418-dont-export-bigint' of github.com:paritytech/parity into util_error_chain
2017-09-05 12:15:39 +02:00
debris
236b6f1c3e
UtilError uses error_chain!, moved OutOfBounds and Mismatched to unexpected crate
2017-09-05 12:14:03 +02:00
Fredrik
2b39af1f09
Updating imports that were introduced with merge
2017-09-05 12:08:02 +02:00
Arkadiy Paronyan
eed0e8b03a
Transaction permissioning ( #6441 )
2017-09-05 10:39:50 +01:00
Fredrik Harrysson
dccdedc001
Merge branch 'master' into fo-6418-dont-export-bigint
2017-09-05 10:48:54 +02:00
Fredrik
d1930ac708
Fix missing imports in tests I had missed
2017-09-05 10:18:21 +02:00
Fredrik
a688370c9d
Remove now unnecessary util glob imports
2017-09-05 10:18:07 +02:00
Fredrik
e54784bfeb
Merge branch 'master' into fo-6418-dont-export-bigint
...
# Conflicts:
# dapps/src/tests/helpers/registrar.rs
# ethcore/evm/src/interpreter/shared_cache.rs
# ethcore/light/src/client/header_chain.rs
# ethcore/light/src/client/mod.rs
# ethcore/light/src/net/mod.rs
# ethcore/light/src/on_demand/request.rs
# ethcore/light/src/on_demand/tests.rs
# ethcore/light/src/provider.rs
# ethcore/node_filter/src/lib.rs
# ethcore/src/block.rs
# ethcore/src/blockchain/blockchain.rs
# ethcore/src/client/test_client.rs
# ethcore/src/engines/authority_round/mod.rs
# ethcore/src/engines/basic_authority.rs
# ethcore/src/engines/mod.rs
# ethcore/src/engines/tendermint/mod.rs
# ethcore/src/engines/validator_set/contract.rs
# ethcore/src/engines/validator_set/multi.rs
# ethcore/src/engines/validator_set/safe_contract.rs
# ethcore/src/engines/vote_collector.rs
# ethcore/src/miner/external.rs
# ethcore/src/miner/miner.rs
# ethcore/src/miner/service_transaction_checker.rs
# ethcore/src/miner/work_notify.rs
# ethcore/src/pod_account.rs
# ethcore/src/pod_state.rs
# ethcore/src/snapshot/block.rs
# ethcore/src/snapshot/consensus/work.rs
# ethcore/src/snapshot/mod.rs
# ethcore/src/snapshot/service.rs
# ethcore/src/spec/spec.rs
# ethcore/src/state/backend.rs
# ethcore/src/trace/db.rs
# ethcore/src/verification/queue/mod.rs
# ethcore/src/verification/verification.rs
# parity/informant.rs
# rpc/src/v1/helpers/dispatch.rs
# rpc/src/v1/helpers/light_fetch.rs
# rpc/src/v1/helpers/signing_queue.rs
# rpc/src/v1/impls/eth.rs
# rpc/src/v1/impls/eth_filter.rs
# rpc/src/v1/impls/eth_pubsub.rs
# rpc/src/v1/impls/light/eth.rs
# rpc/src/v1/impls/signing.rs
# rpc/src/v1/tests/helpers/miner_service.rs
# rpc/src/v1/tests/helpers/snapshot_service.rs
# rpc/src/v1/tests/helpers/sync_provider.rs
# rpc/src/v1/tests/mocked/eth.rs
# stratum/src/lib.rs
# sync/src/blocks.rs
# sync/src/chain.rs
# sync/src/light_sync/mod.rs
# sync/src/tests/helpers.rs
# sync/src/tests/snapshot.rs
# updater/src/updater.rs
# util/src/lib.rs
# util/triehash/src/lib.rs
2017-09-04 18:32:55 +02:00
Fredrik
308f36a532
Don't reexport bigint from util
2017-09-04 16:36:49 +02:00
Robert Habermeier
7ac3dd0889
Merge branch 'light-poa' of github.com:paritytech/parity into light-poa
2017-09-04 12:49:06 +02:00
Robert Habermeier
ffde22e711
move genesis_epoch_data function to spec
2017-09-04 12:46:32 +02:00
Robert Habermeier
e69e8254db
instantiate genesis epoch data if nonexistant in header_chain
2017-09-04 12:37:03 +02:00
Robert Habermeier
372779915f
Merge branch 'master' into light-poa
2017-09-04 12:30:37 +02:00
Marek Kotewicz
b731ccea18
triehash is separated from util ( #6428 )
2017-09-03 09:11:14 +02:00
Hawstein
7b8af30590
remove re-export of parking_lot in util ( #6435 )
2017-09-02 20:09:13 +02:00
Hawstein
1d95fe481f
fix modexp bug: return 0 if base=0 ( #6424 )
2017-09-02 20:08:34 +02:00
Hawstein
2faa28ce9b
separate semantic_version from util ( #6438 )
2017-09-02 13:14:21 +02:00
Hawstein
0b5285c282
move timer.rs to ethcore ( #6437 )
2017-09-02 10:54:39 +02:00
Arkadiy Paronyan
ffae847b48
spacing around comas
2017-09-02 09:57:53 +02:00
Hawstein
cf366bdb29
util should not reexport ansi_term
2017-09-01 22:57:57 +08:00
debris
94f717a255
Merge branch 'master' into keccak_fn
2017-08-31 11:53:26 +02:00
debris
7849fff41e
finished
2017-08-31 11:35:41 +02:00
debris
f0e8abb07b
Hashable::sha3 -> fn keccak for ethcore
2017-08-30 19:18:28 +02:00
Robert Habermeier
abfa8e95a2
Merge branch 'master' into light-poa
2017-08-30 18:18:52 +02:00
Axel Chalon
6b5ad69c22
Remove reexport of HeapSizeOf in util ( #6419 )
2017-08-30 16:04:47 +02:00
debris
8a420d6580
fixed merge
2017-08-30 14:37:02 +02:00
debris
88200a1193
Merge branch 'master' into Fix-4858
2017-08-30 14:30:39 +02:00
Robert Habermeier
4e1fefc8ea
test balance of spec-constructed account is kept
2017-08-30 11:57:48 +02:00
Robert Habermeier
c1c7d7a3e2
ensure balances of constructor accounts are kept
2017-08-29 17:02:38 +02:00
Robert Habermeier
36d046f3ca
do not activate genesis epoch in immediate transition validator contract ( #6349 )
2017-08-29 15:16:24 +02:00
Robert Habermeier
d3c3e0b164
Merge branch 'master' into light-poa
2017-08-29 15:14:58 +02:00
Gav Wood
e3666457cf
Consistent use of ,
s
2017-08-29 15:12:58 +02:00
Gav Wood
50495c6898
Merge branch 'master' into Fix-4858
2017-08-29 15:11:05 +02:00
Arkadiy Paronyan
d520aa2633
Connection filter ( #6359 )
2017-08-29 14:38:01 +02:00
Tomasz Drwięga
b8e6799d67
Don't accept transactions above block gas limit.
2017-08-29 10:50:13 +02:00
Marek Kotewicz
e7cc0477fb
Merge pull request #6399 from paritytech/evm-trace-fix
...
Fix memory tracing.
2017-08-28 18:53:22 +02:00
Tomasz Drwięga
f9a08e285c
Running state test using parity-evm ( #6355 )
...
* Initial version of state tests.
* Refactor state to support tracing.
* Unify TransactResult.
* Add test.
2017-08-28 14:25:16 +02:00
Nikolay Volf
abecd80f54
Wasm math tests extended ( #6354 )
...
* extend math tests
* use latest wasm-tests
* cleanup
* avoid overflow
* use correct gas-
* and division
2017-08-28 14:12:40 +02:00
Tomasz Drwięga
4f69ee0437
Add test to cover that.
2017-08-28 12:32:19 +02:00
debris
faf0428b60
fixed pending block panic, closes #6239
2017-08-27 13:10:08 +02:00
Tomasz Drwięga
dd3b6d49ee
Fix memory tracing.
2017-08-26 21:53:41 +02:00
Robert Habermeier
c79ecee094
only load ancestry from chain closure in engine
2017-08-24 16:29:31 +02:00
Robert Habermeier
b953f9b66a
glue for fetching epoch proofs from network
2017-08-24 15:17:48 +02:00
Robert Habermeier
871a9c063e
Merge branch 'master' into light-poa
2017-08-23 15:49:02 +02:00
Robert Habermeier
2ff3dff6ea
serve epoch signals over network and check them
2017-08-23 15:37:35 +02:00
Robert Habermeier
7f3e718851
EngineClient implementation for light client
2017-08-22 21:02:40 +08:00
Arkadiy Paronyan
d41dd13918
Tweaked snapshot params ( #6344 )
2017-08-22 11:24:56 +02:00
Robert Habermeier
b4d3f78d67
Merge pull request #6345 from paritytech/networkid
...
Rename network_id to chain_id where applicable.
2017-08-22 17:01:23 +08:00
Robert Habermeier
9ae2ed39ec
only use engineclient trait for engines, separated from client trait
2017-08-22 16:00:44 +08:00
Tomasz Drwięga
73644adf69
Rename network_id to chain_id where applicable.
2017-08-21 14:23:10 +02:00
Robert Habermeier
2985561012
detect epoch changes in light client
2017-08-21 18:31:25 +09:00
debris
a247d5b2dc
Merge branch 'master' into itertools
2017-08-21 09:12:36 +02:00
Nikolay Volf
9e4c122cf3
WASM math test ( #6305 )
...
* wasm tests initial
* fix bug in bitswap
2017-08-20 12:02:59 +08:00
Marek Kotewicz
407c8c3fb9
rlp_derive ( #6125 )
...
* rlp_derive
* RlpEncodableWrapper, RlpDecodableWrapper
* use rlp_derive in parity
* fixed broken transaction Action serialization
2017-08-20 12:01:46 +08:00
Robert Habermeier
6ab0fc4e14
epoch transitions in the header chain DB
2017-08-19 17:07:31 +09:00
debris
4cb610d9ae
Itertools are no longer reexported from util, optimized triedb iter
2017-08-17 16:05:26 +02:00
Tomasz Drwięga
a34bea1dad
Fix balance increase.
2017-08-15 10:07:00 +02:00
Robert Habermeier
1e269c94a6
prove_transaction function on state
2017-08-15 00:12:40 +02:00
Nikolay Volf
4ab607d4de
wasm-std refactoring ( #6278 )
2017-08-14 12:33:52 +03:00
Anton Gavrilov
bfd238e000
Style fixed after review
2017-08-10 12:36:29 +02:00
Svyatoslav Nikolsky
33ba5b63f3
SecretStore: encrypt messages using private key from key store ( #6146 )
...
* do not cache ACL storage contract
* when error comes before initialization
* initial KeyServerSet commit
* update_nodes_set in maintain
* do not connect to self
* fixed connection establishing
* removed println
* improved KeyServerSet tracing
* moved parsing to KeyServerSet
* re-read only when blockchain is changed
* do not try to connect if not a part of cluster
* improved logging
* fixed tests
* NodeKeyPAir trait
* fixed parity to use new trait
* continue integrating with parity
* updated parity for NodeKeyPair
* completed KeyStoreNodeKeyPair
* removed comment
* removed dependency && style
2017-08-09 11:09:40 +02:00
Alexey
d209100a60
Wasm storage read test ( #6255 )
...
* Test for read from prepopulated storage implemented
* wasm-tests submodule update
* fix identation
* comment for storage_read added
2017-08-09 10:57:54 +02:00
Marek Kotewicz
78b3d71745
propagate stratum submit share error upstream, fixes #6258 ( #6260 )
2017-08-09 10:57:23 +02:00
Marek Kotewicz
e7a7bd6695
Merge pull request #6241 from paritytech/poa-proof-fix
...
format instant change proofs correctly
2017-08-08 20:58:26 +02:00
Marek Kotewicz
f2929f3b19
Merge pull request #6233 from paritytech/native_contracts_util
...
native-contracts crate does not depend on util any more
2017-08-08 20:55:36 +02:00
Svyatoslav Nikolsky
872e5537bb
SecretStore: do not cache ACL contract + on-chain key servers configuration ( #6107 )
...
* do not cache ACL storage contract
* when error comes before initialization
* initial KeyServerSet commit
* update_nodes_set in maintain
* do not connect to self
* fixed connection establishing
* removed println
* improved KeyServerSet tracing
* moved parsing to KeyServerSet
* re-read only when blockchain is changed
* do not try to connect if not a part of cluster
* improved logging
* fixed tests
2017-08-07 18:54:05 +02:00
Robert Habermeier
e43b1084c3
format instant change proofs correctly
2017-08-04 21:43:31 +02:00
Anton Gavrilov
dd91121017
Common method for tracing refactored due to comments on review
2017-08-04 16:06:12 +02:00
Tomasz Drwięga
f157461ee1
Multi-call RPC ( #6195 )
...
* Removing duplicated pending state accessors in miner.
* Merge miner+client call.
* Multicall & multicall RPC.
* Sensible defaults.
* Fix tests.
2017-08-04 15:58:14 +02:00
debris
35bfbc39f8
native-contracts crate does not depend on util any more
2017-08-04 15:45:47 +02:00
Anton Gavrilov
655ed93ee8
Common engine method for bestowing rewards created
2017-08-04 11:28:26 +02:00
Robert Habermeier
0abf2abc81
checking for signals in the light client
2017-08-03 18:18:19 +02:00
debris
b0f9d73f6a
InstantSeal fix
2017-08-03 16:42:56 +02:00
Anton Gavrilov
30434325a2
Modification of traces moved to engines
2017-08-03 15:55:58 +02:00
Anton Gavrilov
01a02a8985
Wasm test link changed
2017-08-02 19:02:01 +02:00
Anton Gavrilov
01ea968d4f
Merge with master
2017-08-02 17:24:34 +02:00
Anton Gavrilov
2e840bc89c
Fixed comments after the review
2017-08-02 17:10:06 +02:00
Marek Kotewicz
0c7c34e609
Chainspec validation ( #6197 )
...
* chainspec validation
* better error formatting for chainspec
* lint validate_chainspecs.sh
* quit takes &str instead of S: AsRef<str>
* push CI
* don't double check spec validity
2017-08-02 12:50:36 +02:00
debris
a2c05123fd
Merge branch 'master' into split
2017-08-01 14:24:47 +02:00
NikVolf
c1108da6e9
fixed wasm tests
2017-08-01 14:35:43 +03:00
NikVolf
017430e803
fixed evm tests
2017-08-01 14:33:49 +03:00
Nikolay Volf
b7006034b1
Decouple virtual machines ( #6184 )
...
* work in progress for splitting vms
* evm working
* Evm -> Vm
* wasm converted
* ethcore working
* test fixes
2017-08-01 13:37:57 +03:00
Marek Kotewicz
c4025622de
Merge pull request #6177 from paritytech/wasm-realloc-test
...
Realloc test added
2017-08-01 11:04:59 +02:00
Anton Gavrilov
141c2fd34a
Fixed comments after review and test after rebase
2017-07-31 18:10:06 +02:00
debris
81b57ceddb
Merge branch 'master' into split
2017-07-31 16:19:59 +02:00
fro
fe6bdc870c
realloc test contract submodule update
2017-07-31 16:54:26 +03:00
Anton Gavrilov
8826fdb03a
Merge with head
2017-07-31 13:49:44 +02:00
Anton Gavrilov
e8095826bf
Tabs corrected
2017-07-31 13:42:40 +02:00
Anton Gavrilov
9374e31072
Miner field renamed to author
2017-07-31 13:42:40 +02:00
Anton Gavrilov
1a3f3ffdbf
Transaction ids made optional in order to reflect not transactional traces
2017-07-31 13:42:40 +02:00
Anton Gavrilov
45043c3f52
Fixed errors after merge with master
2017-07-31 13:42:40 +02:00
Anton Gavrilov
f2d12aebef
Unit tests for tracing reward added
2017-07-31 13:42:40 +02:00
Anton Gavrilov
3fdb912db6
Complete version of tracing test with reward
2017-07-31 13:42:40 +02:00
Anton Gavrilov
5086dc3024
Working test with block reward added
2017-07-31 13:42:34 +02:00
Anton Gavrilov
204a63a00e
Warnings removed
2017-07-31 13:40:45 +02:00
Anton Gavrilov
06862c7dee
Tracing for rewards added. Without tests for now
2017-07-31 13:40:37 +02:00
Robert Habermeier
003eef982b
Move more params to the common section. ( #6134 )
...
* move common forks and parameters to common params
* port specs over to new format
* fix RPC tests
2017-07-31 12:34:29 +02:00
Anton Gavrilov
bb043ba2fd
Tabs corrected
2017-07-31 12:23:47 +02:00
Anton Gavrilov
94efa3ac19
Miner field renamed to author
2017-07-31 12:06:38 +02:00
debris
48f28fe29c
fixed json_tests
2017-07-29 23:19:33 +02:00
debris
c4989ddc44
removed util::common
2017-07-29 22:49:10 +02:00
debris
eecd823d32
util reexports less std
2017-07-29 21:10:14 +02:00
Robert Habermeier
2bd5c3dba7
checking proofs in safe contract
2017-07-28 19:38:52 +02:00
fro
e234b7fdbf
realloc test added
2017-07-28 16:38:03 +03:00
Anton Gavrilov
1f3f91136c
Transaction ids made optional in order to reflect not transactional traces
2017-07-28 13:41:51 +02:00
Anton Gavrilov
b1935340c8
Fixed errors after merge with master
2017-07-27 19:15:25 +02:00
Anton Gavrilov
af1fbb39ca
Unit tests for tracing reward added
2017-07-27 18:23:17 +02:00
Anton Gavrilov
53c3b772dd
Complete version of tracing test with reward
2017-07-27 18:21:43 +02:00
Anton Gavrilov
73128039a6
Working test with block reward added
2017-07-27 18:21:36 +02:00
Anton Gavrilov
16f39487ba
Warnings removed
2017-07-27 18:20:11 +02:00