Commit graph

10211 commits

Author SHA1 Message Date
Nick Johnson
844aa56f63 Added (very) basic tests 2018-10-17 13:57:49 +01:00
Nick Johnson
205f82e721 Fixed backend fetching to use context 2018-10-17 13:30:40 +01:00
Nick Johnson
c5f893d24c Add doc-comments 2018-10-17 12:46:20 +01:00
Nick Johnson
a79bacd7e2 Move some single use args types into anonymous structs 2018-10-16 20:42:01 +01:00
Nick Johnson
c3387f8d0c Moved schema into its own source file 2018-10-16 20:38:19 +01:00
Nick Johnson
32068e0e31 Add syncing API 2018-10-16 20:27:44 +01:00
Nick Johnson
0e6fa8ef86 Add protocolVersion API 2018-10-16 20:15:27 +01:00
Nick Johnson
135b7d9f5c Add gasPrice API 2018-10-16 20:12:53 +01:00
Nick Johnson
19735c1d23 Restructured Transaction to work primarily with headers, so uncle data is reported properly 2018-10-16 18:24:56 +01:00
Nick Johnson
549d64929d Fix bug in runFilter 2018-10-16 15:40:38 +01:00
Nick Johnson
b235d18367 Add support for logs 2018-10-16 15:29:53 +01:00
Nick Johnson
d92e373123 Converted most quantities to Long instead of Int 2018-10-16 14:30:13 +01:00
Nick Johnson
21cef58afb Replace ethgraphql.Hash with common.Hash 2018-10-16 14:22:02 +01:00
Nick Johnson
268a03b102 Replace ethgraphql.Address with common.Address 2018-10-16 14:16:20 +01:00
Nick Johnson
ba6f531027 Refactor call and estimateGas to use ethapi struct type 2018-10-16 14:13:21 +01:00
Nick Johnson
8790e18ae7 Replace BigNum with hexutil.Big 2018-10-16 13:48:23 +01:00
Nick Johnson
59e2a7f2c8 Refactored to use hexutil.Bytes instead of HexBytes 2018-10-16 13:31:36 +01:00
Nick Johnson
c6c6a7a68f Add Call and EstimateGas to graphQL API 2018-10-16 12:39:07 +01:00
Nick Johnson
42bbab1b03 Added sendRawTransaction mutation 2018-10-16 11:51:06 +01:00
Nick Johnson
75aeee1c30 Add transactionAt and ommerAt to Block 2018-10-15 17:02:48 +01:00
Nick Johnson
460d1586e6 Added ommerCount to Block 2018-10-15 14:16:36 +01:00
Nick Johnson
76e45cf2c1 Add query operator, for a range of blocks 2018-10-15 14:12:02 +01:00
Nick Johnson
4ecd3de5fc Update transaction, receipt and log to match ethql 2018-10-15 14:01:51 +01:00
Nick Johnson
928615200a Rename nonce to transactionCount in Account, to be compatible with ethql 2018-10-15 13:50:05 +01:00
Nick Johnson
4e3be4fe83 Update Block type to be compatible with ethql 2018-10-15 13:44:19 +01:00
Nick Johnson
cd53e6083a Add types and . 2018-10-15 13:24:58 +01:00
Nick Johnson
ed02332148 Add transactionCount to block 2018-10-14 15:33:39 +01:00
Nick Johnson
c46a697c26 Finish receipts, add logs 2018-10-14 13:04:53 +01:00
Nick Johnson
e0f4d7e9e5 Added receipts, and more transaction fields. 2018-10-14 11:04:29 +01:00
Nick Johnson
4b53623cd3 Initial work on a graphql API 2018-10-13 11:27:19 +01:00
Péter Szilágyi
f951e23fb5
Merge pull request #17887 from karalabe/warn-failed-account-access
internal/ethapi: warn on failed account accesses
2018-10-10 13:22:43 +03:00
Péter Szilágyi
aff421e78c
internal/ethapi: warn on failed account accesses 2018-10-10 12:29:05 +03:00
Felix Lange
4e474c74dc
rpc: fix subscription corner case and speed up tests (#17874)
Notifier tracks whether subscription are 'active'. A subscription
becomes active when the subscription ID has been sent to the client. If
the client sends notifications in the request handler before the
subscription becomes active they are dropped. The tests tried to work
around this problem by always waiting 5s before sending the first
notification.

Fix it by buffering notifications until the subscription becomes active.
This speeds up all subscription tests.

Also fix TestSubscriptionMultipleNamespaces to wait for three messages
per subscription instead of six. The test now finishes just after all
notifications have been received and doesn't hit the 30s timeout anymore.
2018-10-09 16:34:24 +02:00
Elad
da290e9707 cmd/swarm: speed up tests (#17878)
These minor changes already shaved off around 30s.
2018-10-09 14:08:40 +02:00
Anton Evangelatov
0fe9a372b3
swarm, swarm/storage: lower constants for faster tests (#17876)
* swarm/storage: lower constants for faster tests

* swarm: reduce test size for TestLocalStoreAndRetrieve

* swarm: reduce nodes for dec_inc_node_count
2018-10-09 11:45:42 +02:00
Martin Holst Swende
d5c7a6056a
cmd/clef: encrypt the master seed on disk (#17704)
* cmd/clef: encrypt master seed of clef

Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>

* keystore: refactor for external use of encryption

* clef: utilize keystore encryption, check flags correctly

* clef: validate master password

* clef: add json wrapping around encrypted master seed
2018-10-09 11:05:41 +02:00
Péter Szilágyi
ff5538ad4c
params, swarm: begin Geth v1.8.18, Swarm v0.3.6 cycle 2018-10-09 10:37:49 +03:00
Péter Szilágyi
8bbe72075e
params, swarm: release Geth v1.8.17 and Swar v0.3.5 2018-10-09 10:35:31 +03:00
Guillaume Ballet
97b2806686 core/asm: Use hexadecimal addresses in assembly dumps (#17870) 2018-10-09 10:27:07 +03:00
holisticode
11d0ff6578 Fix retrieval tests and simulation backends (#17723)
* swarm/network/stream: introduced visualized snapshot sync test

* swarm/network/stream: non-existing hash visualization sim

* swarm/network/stream: fixed retrieval tests; new backend for visualization

* swarm/network/stream: cleanup of visualized_snapshot_sync_sim_test.go

* swarm/network/stream: rebased PR on master

* swarm/network/stream: fixed loop logic in retrieval tests

* swarm/network/stream: fixed iterations for snapshot tests

* swarm/network/stream: address PR comments

* swarm/network/stream: addressed PR comments
2018-10-08 20:28:44 +02:00
Felix Lange
72a076840b
travis, build: speed up CI runs (#17854)
* travis: exclude non-test jobs for PRs

We don't usually look at these builders and not starting them
removes ~15min of build time.

* build: don't run vet before tests

Recent versions of Go run vet during 'go test' and we have
a dedicated lint job.

* build: use -timeout 5m for tests

Tests sometimes hang on Travis. CI runs are aborted after 10min with no
output. Adding the timeout means we get to see the stack trace for
timeouts.
2018-10-08 16:37:06 +02:00
Felix Lange
459278cd57
miner: remove intermediate conversion to int in tests (#17853)
This fixes the tests on 32bit platforms.
2018-10-08 16:30:00 +02:00
Ryan Schneider
cfcc47529d cmd/utils: fix bug when checking for flag value conflicts (#17803) 2018-10-08 17:08:56 +03:00
gary rong
c5d34fc94e les, light: reduce les testing stress (#17867) 2018-10-08 16:52:23 +03:00
Péter Szilágyi
53634f1e04 trie: remove unused originalRoot field (#17862) 2018-10-08 13:16:16 +02:00
Wenbiao Zheng
31c4e3a118 core/types: Log.Index is the index in block, not receipt (#17866) 2018-10-08 13:15:19 +02:00
Péter Szilágyi
1d3d4a4d57 core/vm: reuse Keccak-256 hashes across opcode executions (#17863) 2018-10-08 13:14:29 +02:00
Javier Peletier
c5cb214f68 swarm/storage/feed: Expose MaxUpdateDataLength constant (#17858) 2018-10-08 10:57:38 +02:00
Philip Schlump
f95811e65b cmd/abigen: support for --type flag with piped data (#17648) 2018-10-06 16:27:12 +02:00
Jeremy Schlatter
5ed3960b9b accounts/abi/bind: stop using goimports in the binding generator (#17768) 2018-10-05 22:24:54 +02:00