Commit graph

1677 commits

Author SHA1 Message Date
Paul Berg
f4f4877c3b Polished and fixed PR 2019-01-30 00:09:15 +00:00
Paul Berg
65878a0b84 Added example RPC calls for account_signData and account_signTypedData 2019-01-30 00:09:15 +00:00
Paul Berg
90241ef49e Brought legal warning back after temporarily disabling it for development 2019-01-30 00:09:15 +00:00
Paul Berg
19d9b2a774 Fixed bugs in 'data/typed' signs 2019-01-30 00:09:15 +00:00
Paul Berg
6c68ed1b17 Changed the property type required by signData from bytes to interface{} 2019-01-30 00:09:15 +00:00
Paul Berg
798866bac0 Solved stringified address encoding issue 2019-01-30 00:09:15 +00:00
Paul Berg
2f018cea0d Drafted text/validator and and rewritten []byte as hexutil.Bytes 2019-01-30 00:09:15 +00:00
Paul Berg
5f23386d76 Drafted first version of EIP-712, including tests 2019-01-30 00:09:15 +00:00
Paul Berg
1a47367adc Ran goimports and gofmt 2019-01-30 00:09:15 +00:00
Paul Berg
fb23ff9d73 Drafted recursive encodeData 2019-01-30 00:09:15 +00:00
Paul Berg
190530ea77 Changed mimes and implemented the 'encodeType' function for EIP-712 2019-01-30 00:09:15 +00:00
Paul Berg
bd38e0ca9d Changed method to signTypedData 2019-01-30 00:09:15 +00:00
Paul Berg
1478b88947 Solved the auditlog issue 2019-01-30 00:09:15 +00:00
Paul Berg
ed5f7f3b14 Working on TypedData 2019-01-30 00:09:15 +00:00
Paul Berg
adccccbb88 Implementing UnmarshalJSON() for TypedData 2019-01-30 00:09:15 +00:00
Paul Berg
678ee915f2 Updated the extapi changelog and addded indications in the README 2019-01-30 00:09:15 +00:00
Paul Berg
43d7760887 Named functions and defined a basic EIP191 content type list 2019-01-30 00:09:15 +00:00
Paul Berg
3742cf2380 Added types to EIP712 output in cliui 2019-01-30 00:09:15 +00:00
Paul Berg
51b1addf3d Polished and fixed PR 2019-01-30 00:09:15 +00:00
Paul Berg
cca0a9628f Added example RPC calls for account_signData and account_signTypedData 2019-01-30 00:09:14 +00:00
Paul Berg
3adda3f323 Brought legal warning back after temporarily disabling it for development 2019-01-30 00:09:14 +00:00
Paul Berg
4b893bee79 Fixed bugs in 'data/typed' signs 2019-01-30 00:09:14 +00:00
Paul Berg
05314acf9a Changed the property type required by signData from bytes to interface{} 2019-01-30 00:09:14 +00:00
Paul Berg
61c6704c37 Solved stringified address encoding issue 2019-01-30 00:09:14 +00:00
Paul Berg
6910ba2991 Drafted text/validator and and rewritten []byte as hexutil.Bytes 2019-01-30 00:09:14 +00:00
Paul Berg
2b222273f7 Drafted first version of EIP-712, including tests 2019-01-30 00:09:14 +00:00
Paul Berg
5cba9e2356 Ran goimports and gofmt 2019-01-30 00:09:14 +00:00
Paul Berg
35b83c1b9f Drafted recursive encodeData 2019-01-30 00:09:14 +00:00
Paul Berg
d6a4242066 Changed mimes and implemented the 'encodeType' function for EIP-712 2019-01-30 00:09:14 +00:00
Paul Berg
86dbe8aa3e Changed method to signTypedData 2019-01-30 00:09:14 +00:00
Paul Berg
ae5583a93c Solved the auditlog issue 2019-01-30 00:09:14 +00:00
Paul Berg
35cb892b68 Working on TypedData 2019-01-30 00:09:14 +00:00
Paul Berg
e440c25a2b Implementing UnmarshalJSON() for TypedData 2019-01-30 00:09:14 +00:00
Paul Berg
5142521b84 Changed the version of the external API 2019-01-30 00:09:14 +00:00
Paul Berg
35dcd8c306 Updated the extapi changelog and addded indications in the README 2019-01-30 00:09:14 +00:00
Paul Berg
6ec2ee4198 Named functions and defined a basic EIP191 content type list 2019-01-30 00:09:14 +00:00
Anton Evangelatov
21acf0bc8d cmd/utils: allow for multiple influxdb tags (#18520)
This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag.

This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments).
2019-01-29 09:14:24 +01:00
Felix Lange
17723a5294
cmd/bootnode: print node URL on startup (#18516)
Also say that cmd/bootnode is not for production use.
2019-01-25 12:39:52 +01:00
Anton Evangelatov
0a454554ae cmd/utils: allow empty bootnodes flag override (#18509) 2019-01-24 13:02:30 +01:00
gluk256
ad13d2d407 swarm/version: commit version added (#18510) 2019-01-24 12:35:10 +01:00
b00ris
769657060e les: implement ultralight client (#16904)
For more information about this light client mode, read
https://hackmd.io/s/HJy7jjZpm
2019-01-24 12:18:26 +01:00
Anton Evangelatov
bbd120354a
swarm: bootnode-mode, new bootnodes and no p2p package discovery (#18498) 2019-01-24 12:02:18 +01:00
Martin Holst Swende
ecb781297b core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486)
This PR adds a new fork which disables EIP-1283. Internally it's called Petersburg,
but the genesis/config field is ConstantinopleFix.

The block numbers are:

    7280000 for Constantinople on Mainnet
    7280000 for ConstantinopleFix on Mainnet
    4939394 for ConstantinopleFix on Ropsten
    9999999 for ConstantinopleFix on Rinkeby (real number decided later)

This PR also defaults to using the same ConstantinopleFix number as whatever
Constantinople is set to. That is, it will default to mainnet behaviour if ConstantinopleFix
is not set.This means that for private networks which have already transitioned
to Constantinople, this PR will break the network unless ConstantinopleFix is
explicitly set!
2019-01-24 11:36:30 +01:00
Kris Shinn
f91312dbdb GraphQL master FF for review (#18445)
* Initial work on a graphql API

* Added receipts, and more transaction fields.

* Finish receipts, add logs

* Add transactionCount to block

* Add types  and .

* Update Block type to be compatible with ethql

* Rename nonce to transactionCount in Account, to be compatible with ethql

* Update transaction, receipt and log to match ethql

* Add  query operator, for a range of blocks

* Added ommerCount to Block

* Add transactionAt and ommerAt to Block

* Added sendRawTransaction mutation

* Add Call and EstimateGas to graphQL API

* Refactored to use hexutil.Bytes instead of HexBytes

* Replace BigNum with hexutil.Big

* Refactor call and estimateGas to use ethapi struct type

* Replace ethgraphql.Address with common.Address

* Replace ethgraphql.Hash with common.Hash

* Converted most quantities to Long instead of Int

* Add support for logs

* Fix bug in runFilter

* Restructured Transaction to work primarily with headers, so uncle data is reported properly

* Add gasPrice API

* Add protocolVersion API

* Add syncing API

* Moved schema into its own source file

* Move some single use args types into anonymous structs

* Add doc-comments

* Fixed backend fetching to use context

* Added (very) basic tests

* Add documentation to the graphql schema

* Fix reversion for formatting of big numbers

* Correct spelling error

* s/BigInt/Long/

* Update common/types.go

* Fixes in response to review

* Fix lint error

* Updated calls on private functions

* Fix typo in graphql.go

* Rollback ethapi breaking changes for graphql support
Co-Authored-By: Arachnid <arachnid@notdot.net>
2019-01-21 15:38:13 +01:00
holisticode
560957799a cmd/swarm/swarm-smoke: use ResettingTimer instead of Counters for times (#18479) 2019-01-18 18:14:06 +01:00
Anton Evangelatov
a0b0db6305
cmd/swarm: use resetting timer to measure fetch time (#18474) 2019-01-18 13:27:27 +01:00
Elad
632135ce4c cmd/swarm/swarm-snapshot: disable tests on windows (#18478) 2019-01-18 13:22:05 +01:00
holisticode
257bfff316 Upload speed (#18442) 2019-01-17 17:25:27 +01:00
Elad
34f11e752f cmd/swarm/swarm-snapshot: swarm snapshot generator (#18453)
* cmd/swarm/swarm-snapshot: add binary to create network snapshots

* cmd/swarm/swarm-snapshot: refactor and extend tests

* p2p/simulations: remove unused triggerChecks func and fix linter

* internal/cmdtest: raise the timeout for killing TestCmd

* cmd/swarm/swarm-snapshot: add more comments and other minor adjustments

* cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot

* cmd/swarm/swarm-snapshot: change comment wording

* p2p/simulations: revert Simulation.Run from master

https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904

* cmd/swarm/swarm-snapshot: address pr comments

* swarm/network/simulations/discovery: removed snapshot write to file

* cmd/swarm/swarm-snapshot, swarm/network/simulations: removed redundant connection event check, fixed lint error
2019-01-16 14:33:02 +01:00
Paweł Bylica
d37f987639 cmd/evm: Add --vm.evm flag to support EVMC (#18457) 2019-01-16 11:43:41 +01:00