1038 Commits

Author SHA1 Message Date
Dmitry Shulyak
4a49e840e3 Remove status backend from les internal api (#670) 2018-02-16 15:40:37 +01:00
Igor Mandrigin
b83666a90e Fix linter warnings for StatusBackend. (#675) 2018-02-16 15:58:13 +02:00
Ivan Danyliuk
716f1b1cb0 Fix comment 2018-02-16 13:02:41 +01:00
Ivan Danyliuk
f78b79b49b Change default connection state to unknown 2018-02-16 13:02:41 +01:00
Ivan Danyliuk
bc1c3e6337 Make linters happy 2018-02-16 13:02:41 +01:00
Ivan Danyliuk
4982e1b8b8 Add ConnectionChange API call to backend for handling network state changes 2018-02-16 13:02:41 +01:00
Alex Kohler
a2431b3e2b Fix typo in README 2018-02-16 03:45:06 +01:00
Igor Mandrigin
004d3ef249 Remove unused 0007-README.patch. 2018-02-15 13:08:32 +01:00
Igor Mandrigin
2e03cbcb5d Remove outdated 0003-dockerfiles-wnode-swarm.patch. 2018-02-15 12:51:37 +01:00
Igor Mandrigin
18373da969 Remove mentions of our fork of go-ethereum from docs. 2018-02-15 11:16:59 +01:00
Alex Kohler
228bda9fb3 Remove //nolint: gas directives from fmt.Fprintf #590 (#656)
Summary:
Filter out gas linter error checks for fmt.Fprintf commands. This required defining a custom linter around gas that additionally included the offending code.

Notes:

Gas format, without piping it through gometalinter, gives output like this:

$ gas -fmt=csv geth/jail/console/console.go
geth/jail/console/console.go,21,Errors unhandled.,LOW,HIGH,"fmt.Fprintf(w, ""%s: %s"", consoleEventName, formatForConsole(fn.ArgumentList))"
Gometalinter, by default, does not grab the line of code when it filters gas errors. To resolve this, I created a wrapper around gas (I wasn't sure what to call this "gas wrapper", I opted for gasv2, open to other names).

The first part of the regular expression was taken directly from gometalinter (see https://github.com/alecthomas/gometalinter/blob/master/linters.go#L236), and I then appended ,\".*\" to additionally grab the line of code of the offending line. Lastly, I excluded ".*Errors unhandled.*fmt.Fprintf.*" to filter out only fmt.Fprintf errors around omitted errors.

Also as a result of this change, gas lint output will now include the offending code.

Closes #590
0.9.15
2018-02-14 19:58:20 +02:00
Caner Çıdam
15c72f3c6b Apply geth patches on the fly #653 (#660) 2018-02-14 18:44:27 +01:00
Dmitry Shulyak
0b979c507d Fix async status api (#663) 2018-02-14 17:32:36 +01:00
Adam Babik
adbc7b5ae6 use s.Require() in Whisper tests 2018-02-14 10:45:29 +01:00
Adam Babik
24aa1b0f1c add node_peers Prometheus metric 2018-02-13 15:18:29 +01:00
Adam Babik
404f633f2b add doc string to get-docker-image-tag.sh 2018-02-13 10:30:47 +01:00
Adam Babik
9ed2663b6e add docker-image-tag target to Makefile 2018-02-13 10:30:47 +01:00
Pedro Pombeiro
ffef611295
Tear 0013-whisperv6-notifications.patch into two different patches (#657) 2018-02-13 10:14:57 +01:00
Dmitry Shulyak
5503278899
Fix wnode cluster after recent changes (#654) 2018-02-12 18:57:19 +02:00
Pedro Pombeiro
857b72e9fd
Create whisperv6 patch versions of 0004-whisper-notifications.patch and 0009-whisper-envelopes-tracing.patch. Closes #637 2018-02-12 16:44:04 +01:00
Pedro Pombeiro
9976018978
Create temporary whisperv6 patch file. Closes #636 2018-02-12 16:36:55 +01:00
Pedro Pombeiro
f5393274ff
Fix a couple of patches where new files are created so that new files are marked as such
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2018-02-12 15:56:03 +01:00
Pedro Pombeiro
51f1434a77
Make patcher apply the patches from the folder relative to the script itself 2018-02-12 15:55:32 +01:00
Dmitry Shulyak
6526bace85
Add cmd flag to specify http host of json rpc server (#651) 2018-02-12 16:17:10 +02:00
Igor Mandrigin
9cc9982a6a
[#639] Disable filter removal in go-ethereum. (#650) 2018-02-12 13:02:25 +01:00
Alex Kohler
365bc662a2 Enable gometalinter on tests and fix static analysis issues #631 (#644)
* Enable gometalinter on tests and fix static analysis issues

* Remove unneeded change

* Fix additional lint errors

* Add nolint directives and error checks

* Add error assertions instead of nolint directives

* Go back to using lint directive for loop.Run goroutine

* Add error check to loop.Run
2018-02-12 13:16:06 +02:00
Caner Çıdam
a4c36fe96a Move non-go related files to the _assets folder. #621 (#630) 2018-02-09 14:38:18 +01:00
Dmitry Shulyak
2d964bfe9f Remove async operations from node manager (#584)
The main goal of this change is to remove async operations from node manager.
Additionally all of the signals from node manager are moved to status backend.

All of the async operation now will have the following behaviour:
- If node in the correct state exit immediatly without error
- If node not in the correct state exit immediatly with error
- In all other cases spawn a goroutine with wanted operation
- All the progress regarding that operation will be reported
  by using signals
- Signals should be handled in once place, which is StatusBackend

There are 2 potentially breaking changes:
- Empty event field will be ommited when Envelope is sent to a client
- All errors will be delivered to a client as an Envelope, previously
  some errors (NodeExists, NoRunningNode) were delivered synchronously

Signed-off-by: Dmitry Shulyak <yashulyak@gmail.com>
2018-02-09 14:37:56 +01:00
Pedro Pombeiro
8c3aa9a619
Fix a couple of lint warnings 2018-02-09 10:28:27 +01:00
Adrià Cidre
3c83c93039 Update jail README (#626) 2018-02-09 02:25:17 +02:00
Dmitry Shulyak
4cddc362ac
Fix all data races in jail package (#632)
* Rework how loop is stopped

* Use atomic int32 for DummyTask

* Close loop channel only once

* Rename closeChan to closedChan
2018-02-08 15:03:04 +02:00
Sebastian Klier
70912ab8f6 Group tests in a dedicated testing package (#629) 2018-02-08 13:52:47 +01:00
Dmitry Shulyak
766568dc11 Ignore *.test files from all folders (#635) 2018-02-08 14:23:08 +02:00
Caner Çıdam
34dc63a952 Create a script that auto-applies geth-patches #603 (#624) 2018-02-08 13:07:49 +01:00
Pedro Pombeiro
5e244ee7ef
Update github-bot.yml 2018-02-08 13:00:10 +01:00
Azer Koçulu
5bea85fa9b Improve fetch tests in Cell (#627) 2018-02-08 12:41:07 +01:00
Adrià Cidre
00df3ff9f8 [#618] Jail.Call to return valid JSON string based results (#619) 2018-02-08 12:25:01 +01:00
Adam Babik
9885d74db0 Fix sync-and-exit option logic (#628)
* fix sync-and-exit logic

* fix reading from doneSync channel

* clean up

* make statusd before using it

* move syncAndStopNode to different file

* change log level in travis chain sync command

* do not use fmt but log

* add progress log and set timeout to 20 mins

* set datadir to .ethereumtest

* fix datadir
2018-02-08 10:51:53 +02:00
Dmitry Shulyak
d0ef64a177 Maintain local copy of the nonce for each used address (#538) 2018-02-08 00:23:57 +02:00
Caner Çıdam
ca719af71c Sync blockchain before running e2e tests on public testnet #568 (#612) 2018-02-07 11:48:03 +01:00
Adam Babik
c00e5c9c58 Fix command line flags (#623) 2018-02-06 14:53:04 +02:00
Dmitry Shulyak
f90e65820c
Fix linter after ethmetrics were merged (#622) 2018-02-06 13:59:40 +02:00
Dmitry Shulyak
ca5a8f6669 Enable ethereum metrics collection (#616) 2018-02-05 21:25:40 +02:00
Caner Çıdam
0dd47ab7bc Cover transaction manager with additional test cases #561 (#601) 2018-02-05 17:28:21 +01:00
Federico Gimenez
2f4be933bf Add a test case with multiple transactions and upstream node (#615)
* Add a test case with multiple transactions and upstream node

* address review comments
2018-02-05 16:48:54 +01:00
Federico Gimenez
13454e827b e2e: wait and get message before asserting empty list (#610)
* e2e: wait and get message before asserting empty list

* Added comments

* remove redundant checks

* remove redundant check

* address review comments
2018-02-05 15:40:27 +02:00
Sebastian Delgado
607954bfc3 Enforce type safety in NodeCrashEvent #602 (#607) 2018-02-05 11:37:59 +01:00
Dmitry Shulyak
d699d35107 Make max amount of peers configurable (#611) 2018-02-05 11:12:57 +01:00
Denis Makogon
230e4febb1 Fixing test imports (#593) 2018-02-05 00:07:47 +01:00
Igor Mandrigin
6728dcf06d
Update READMEs to document dep-based workflow. (#606) 2018-02-02 18:44:29 +01:00