Commit Graph

737 Commits

Author SHA1 Message Date
Igor Mandrigin 2d55ed23af Remove unused `helpers` package with single subpackage. 2018-02-02 16:55:42 +01:00
Athos Ribeiro d58a06c323 Fix string printed after compilation is done (#505)
* Fix string printed after compilation is done

On GNU coreutils 8.27, echo prints the \n occurrences as literals. This
commit changes the calls to echo containing such character to calls to
printf, and appends another \n in the end of the line.

* Fix indent
2018-02-02 16:54:14 +01:00
Dmitry Shulyak ecf74e2189 Make whisper nodes reachable from prometheus by sharing a network
Signed-off-by: Dmitry Shulyak <yashulyak@gmail.com>
2018-02-02 15:22:22 +02:00
Igor Mandrigin 156bbe1986 [#429] fix npe in geth's filter system. 2018-02-02 15:10:30 +02:00
Igor Mandrigin def50018ec
[#429/partial] Add a patch to fix npe in go-ethereum. (#599) 2018-02-02 13:30:56 +01:00
Dmitry Shulyak 653da5bcd0 Result of tx processing returned as QueuedTxResult
Currently it is quite easy to introduce concurrency issues while working
with transaction object. For example, race issue will exist every time
while transaction is processed in a separate goroutine and caller will
try to check for an error before event to Done channel is sent.

This change removes all the data that is updated on transaction and leaves
it with ID, Args and Context (which is not used at the moment).

Signed-off-by: Dmitry Shulyak <yashulyak@gmail.com>
2018-02-02 09:47:56 +02:00
Azer Koçulu 8b56060e21 Add vendor-check script, Makefile target and CI step (#581) 2018-02-01 18:14:51 +01:00
Dmitry Shulyak b41c4895fe Remove syncpool.go (#594) 2018-01-31 23:50:38 +01:00
Adam Babik 5383182251
Fix race conditions in e2e transaction tests (#582) 2018-01-31 08:34:31 +01:00
Adam Babik 89d89681a3
Add support for metrics (#558)
It adds support for metrics (expvar and Prometheus) along with docker-compose files to run a Whisper test cluster.
2018-01-30 12:51:48 +01:00
Dmitry Shulyak ba0433367c Add instructions how to prepare/run e2e tests (#577) 2018-01-29 11:14:55 +01:00
Dmitry Shulyak ba0b20e53f Remove mocks for transaction manager and transaction queue
It is very unlikely that there will be 2 or more implementations
of tx manager and queue, as they are tailored specifically to status project
requirements.
2018-01-26 15:21:34 +01:00
Dmitry Shulyak 680d0513b7 Refactoring of TxQueue and Manager (#530) 2018-01-25 21:59:21 -08:00
Dmitry Shulyak 6ed5997ff4
Merge pull request #573 from azer/develop
Fix link to geth-patches readme
2018-01-26 07:50:04 +02:00
Azer Koçulu 72445d5dd4
Fix link to geth-patches readme 2018-01-26 10:14:29 +08:00
Igor Mandrigin fb3d2ff6fe
Introduce the dependency vendoring tool: `dep`. (#551)
* Introduce `dep`, the dependency vendoring tool.

Use commits from `go-ethereum@release/1.7` for most of the dependencies.

* Update dependencies.
2018-01-25 14:08:43 +01:00
Dmitry Shulyak 3b3097c95b
Merge pull request #572 from dshulyak/peercountlint
Fix PeerCount lint warning
2018-01-25 14:26:24 +02:00
Dmitry Shulyak 28a122f4aa Fix PeerCount lint warning 2018-01-25 12:16:59 +02:00
Dmitry Shulyak 889eeca31d Add a workaround for waiting till node is synced with network (#565) 2018-01-24 23:26:34 -08:00
Daniel Nephin 755a646bd4 Use gometalinter config instead of makefile (#560) 2018-01-24 00:25:28 -08:00
Adam Babik e214e1e270
Manage discovery from flags and refactor handling interrupt signals (#557) 2018-01-22 21:16:13 -08:00
Pedro Pombeiro cb0a889245 Add probot settings 2018-01-22 16:41:34 +01:00
Adam Babik c153a60dc3
Clean up whisper log delivery (#555) 2018-01-19 15:53:16 +01:00
Dmitry Shulyak 0771e7d1b7 Use single codepath for sending transactions to a local and remote nodes (#527)
- new EthereumTransactor that provides higher level API for working with ethereum network, and it is fully conformant with ethclient
- new test rpc service that improves flexibility and coverage of txqueue manager tests
- run complete transaction sequantially for each address
- go-ethereum: Get pending nonce from transaction pool
- add a patch with getting nonce from transaction pool
2018-01-18 17:55:17 +01:00
Ivan Daniluk ea55ac0744
Cleanup after merging wnode-status and statusd (#554) 2018-01-17 22:40:14 +01:00
phcurtis 5a5c5d3a5c Merge wnode-status into statusd (#549) (#550) 2018-01-17 21:07:45 +01:00
F. Eugene Aumson 83763e0401 Make gas linter happy (#544) 2018-01-17 17:46:21 +01:00
Igor Mandrigin bffd2fda08 Add `Content-Type` to the whisper tests as required in geth 1.7.3. (#553) 2018-01-17 17:12:40 +01:00
Ivan Daniluk f93cd81d83
Upgrade to geth 1.7.3 and add geth patches (#492) 2018-01-15 21:26:41 +01:00
Adam Babik 953790c641 Add a test case to reproduce the issue (#548) 2018-01-11 18:17:41 +01:00
Adrià Cidre 7ab6a062ec [#516] Fix panic based on wrong error in setImmediate function (#535)
Additionally, this change clean ups and improves organization of `geth/jail/internal/timers` package.
2018-01-10 10:42:40 +01:00
Adam Babik 83415ea4c8
Fix dependency version to build xgo-ios-simulator image (#542) 2018-01-10 10:37:09 +01:00
Ivan Daniluk e9a0286523
Remove tput usage from Makefile (#531) 2018-01-09 18:46:54 +01:00
Igor Mandrigin 45d75da7cb .gitignore: add vim swap files (#545) 2018-01-09 18:28:03 +01:00
Igor Mandrigin 21132a441f Remove creating global `_status_catalog` variable 2018-01-09 17:53:33 +01:00
Adrià Cidre d71c66a243 Add mockgen dependency on the Readme to run make ci (#533) 2018-01-04 17:04:40 +01:00
Dmitry Shulyak ece5e367f6 Register testify command line flags (#528) 2018-01-04 14:57:50 +02:00
Pedro Pombeiro a79b1f6f7b xgo: Use statusteam/xgo Docker image, based on Go 1.9.2 instead of 1.8.3 (#520) 2018-01-04 10:47:10 +01:00
Caner Çıdam 5c8b7758d5 add the missing dot at the end of comment sentence 2018-01-04 09:38:53 +01:00
Caner Çıdam a3663fa1cc fewer s.reinitMock() lines using SetupTest 2018-01-04 09:38:53 +01:00
Caner Çıdam 2d4391704e short comment for TestAccounts 2018-01-04 09:38:53 +01:00
Caner Çıdam 813c6df5f0 reduce error check in TestSelectAccount 2018-01-04 09:38:53 +01:00
Caner Çıdam 83e71f3e4f fix order of s.Equal args 2018-01-04 09:38:53 +01:00
Caner Çıdam 74f38d4f94 update rest of the tests: expected errors 2018-01-04 09:38:53 +01:00
Caner Çıdam c0acd033a1 update table-driven tests: expected errors 2018-01-04 09:38:53 +01:00
Caner Çıdam 90123f4f40 remove unnecessary check in TestAddressToDecryptedAccount 2018-01-04 09:38:53 +01:00
Caner Çıdam 491b4ca3ce split TestCreateAndRecoverAccount 2018-01-04 09:38:53 +01:00
Caner Çıdam ca5b34afb7 verify accounts in TestAddressToDecryptedAccount 2018-01-04 09:38:53 +01:00
Caner Çıdam f31fcd6c90 fix NotNil misuse 2018-01-04 09:38:53 +01:00
Caner Çıdam 1daeeee4fd few changes to TestSelectedAndReSelectAccount 2018-01-04 09:38:53 +01:00