Adam Babik
987cdd6221
Update Ropsten CHT to number 478 ( #428 )
2017-10-29 16:44:44 +03:00
Ivan Tomilov
21beb685b4
Add -network flag for Makefile to chose a network to run tests on #430
...
PR adds test flag -network to e2e pacakge, for the selection of the desired blockchain network for running tests. It updates readme to demonstrates usage of flag.
2017-10-26 22:51:04 +03:00
Ivan Tomilov
2897f0ec0f
Merge pull request #390 from status-im/issue/refactor-api-notify-send-messages-#342
...
Refactor and little bit clean up Notify api:
Created interface and package "notification" and extracted related code into it
Set dependencies into constructor notificatotion.Manager
Mocks for notificatotion.Manager and FCMClient
Bacis unit tests for Notify and Send
Notify func is now deprecated
Notify users uses new API: message, Payload and a list of tokens
2017-10-26 20:54:12 +03:00
Alexander Ewetumo
8145412d1c
Ensure to return err for nil RPCCLient
2017-10-26 14:25:38 +01:00
Adam Babik
8cbd7ed1c4
fix linter across the whole project
2017-10-26 12:20:16 +02:00
Alexander Ewetumo
ed61a1b19c
Update code with network id and url returner
2017-10-25 13:08:33 +01:00
Ivan Tomilov
39cc60b8a7
Fixed make lint
2017-10-24 19:48:31 +03:00
Evgeny Danienko
0e72e3d6b4
Update notify interface and mark old one as deprecated
2017-10-24 00:47:09 +03:00
Evgeny Danienko
a3bca52f51
Fmt
2017-10-22 20:41:25 +03:00
Evgeny Danienko
c823acfd04
All notifiers remaned into notification
2017-10-22 20:39:57 +03:00
Evgeny Danienko
d22cdc5cbb
NotifyResult doesnt return error field if success
2017-10-22 20:39:57 +03:00
Evgeny Danienko
9efed591da
Notifier constructor renamed
2017-10-22 20:39:57 +03:00
Eugene
42cb6446b9
Return error for notify
2017-10-22 20:39:56 +03:00
Eugene
4f9788a158
Fix tests and rename field in Notifier
2017-10-22 20:39:56 +03:00
Eugene
390495342c
Make FCM client interface private
2017-10-22 20:39:56 +03:00
Eugene
c304d3e7ae
Update PN tests
2017-10-22 20:39:56 +03:00
Eugene
804ed7c10c
Remove provider interface
2017-10-22 20:39:56 +03:00
Eugene
c36a51d0cf
Firebase provider tests
2017-10-22 20:39:56 +03:00
Eugene
7195fe3f92
Create message provider interface
2017-10-22 20:39:55 +03:00
Eugene
9c1aff3655
Unnecessary test checks removed
2017-10-22 20:39:55 +03:00
Eugene
acd1c1527c
Basic unit testing for notification service
2017-10-22 20:39:55 +03:00
Eugene
4aaeeb6ebf
Extract notification into separete package and interface
2017-10-22 20:39:51 +03:00
b00ris
e911666b5d
Fix make lint warnings ( #417 )
...
fixed make lint warnings
cleared linter_exclude_list.txt
removed some commented code
fixed comments from #388
2017-10-20 12:06:22 +03:00
Adam Babik
ad9a8777a8
fix node unit tests ( #416 )
...
Fix tests that broke after introducing #414
2017-10-19 16:45:14 +03:00
Adam Babik
2e9302c631
removed CHT root from Rinkeby ( #414 )
...
CHT roots for Rinkeby do not work as their presence prevents status-go from even starting synchronization.
2017-10-19 15:02:42 +03:00
Adam Babik
b9372459cc
Rebase on geth 1.7.2 ( #402 )
2017-10-17 12:58:04 +03:00
Ewetumo Alexander
2159711fa3
Refactoring/blockchain sync#246 ( #271 )
...
PR adds a new API changes to the NodeManager to provide simple methods to validate the completed synchonization of the blockchain.
2017-10-17 01:36:36 +03:00
screwyprof
26fcfda87c
Introduced a private Ethereum network for testing purposes ( #397 )
...
1. A new private testing network (StatusChain) is introduced.
2. An example test case implemented (TestSendEtherOnStatusChainTx)
3. Genesis file added static/config/status-chain-genesis.json
2017-10-17 00:54:56 +03:00
Oleg Raev
240149786f
Jail.RemoveCells before logout and switching account ( #382 )
...
Called jail.Stop upon SwitchAccount and Logout to ensure all jail cells have been terminated.
2017-10-17 00:07:42 +03:00
Ivan Tomilov
16741f9517
Fixed jail.cells nil assignment ( #398 )
...
jail.cells is now re-created upon Jail.Stop, not assigned to nil. Assigning it to nil led to runtime panic when a node was stopped and started again.
2017-10-13 15:13:20 +03:00
Adam Babik
12412b3f58
Put int64 as the first word in Loop ( #396 )
...
Fix a bug with ARM and x86-32 and use of atomic operations on 64-bit values. More https://golang.org/pkg/sync/atomic/#pkg-note-BUG
2017-10-12 17:01:04 +02:00
Ivan Tomilov
88294b29be
Removed homestead bootnodes ( #394 )
...
Remove homestead bootnodes from cht.json. Their existence reflected the reality incorrectly as we don't have any homestead bootnodes in our cluster.
2017-10-12 12:46:41 +03:00
Ivan Daniluk
d4496332f9
Check for callback in makeAsyncHandler ( #395 )
...
This PR fixes regression from 3540972
and adds check for callback validity before putting it into event loop for sendAsync calls.
2017-10-12 12:15:07 +03:00
Adam Babik
281b304edb
Extract e2e tests to a separate package ( #375 )
...
This change moves our e2e tests into a separate package to make room for proper unit and integration tests.
This is Phase 1 described in #371 .
Changes:
Makefile has separate directives to run unit/integration tests and e2e tests,
CI runs unit/integration tests first and then e2e tests,
E2e tests are in reliability order, i.e. the least reliable tests are run in the end to be sure that nothing else is broken,
Some tests are fixed or quarantined.
2017-10-11 17:20:51 +03:00
Adam Babik
90acfedf7a
Rebase geth 1.7.0 ( #353 )
2017-10-10 12:38:49 +03:00
Ivan Daniluk
3540972f0e
Refactor and cleanup Jail ( #368 )
...
Refactor and clean up Jail package:
Removes account.Manager and txqueue.Manager from Jail as they are not used anymore
Removes messageID related code from Jail.Send
Simplifies Jail.Send to be a wrapper around RPC client's CallRaw
Renames jail_cell* to cell*
Related cleanups
2017-10-06 19:52:26 +03:00
Adam Babik
e61c39b0b2
Forward net_* rpc commands to the upstream ( #377 )
2017-09-29 17:09:41 +02:00
Adam Babik
ede939dd9e
Remove LES activation when using upstream ( #373 )
2017-09-29 09:40:10 +02:00
Ivan Daniluk
9cc5fd2112
Move transaction queue code into separate package ( #365 )
2017-09-27 02:50:41 +02:00
Adam Babik
d625ddacfd
Validate password in CompleteTransaction with remote node ( #367 )
2017-09-26 18:08:24 +02:00
Ivan Daniluk
93492cf606
Move accounts to separate package ( #360 )
2017-09-26 15:44:26 +02:00
Ivan Daniluk
14a04c1b20
Fix null result field bug for JSON-RPC raw response ( #362 )
2017-09-26 12:19:17 +02:00
Adam Babik
edcb2d7933
Fix signals package to compile for ios ( #363 )
2017-09-26 11:23:13 +02:00
Ivan Daniluk
2acf1a1a6a
Refactor/signals package ( #359 )
...
Move signals code to the separate package.
2017-09-25 20:22:57 +02:00
Ivan Tomilov
fc8f59e121
Fixed eth_sendTransaction routing to the local node ( #351 )
...
* Fixed eth_sendTransaction routing to the local node
* Add local RPC handlers for eth_accounts and eth_sendTransaction
2017-09-25 18:04:40 +02:00
Adam Babik
750612f2bc
fix SendTransaction signature in go-ethereum ( #355 )
...
I created a separate method SendTransactionWithPassphrase which accepts passphrase as a second argument. It's an exact copy of SendTransaction except for calling wallet.SignTxWithPassphrase.
2017-09-22 18:16:22 +03:00
Ivan Tomilov
283ae3e7df
Fixed geth/node and geth/params tests ( #332 )
2017-09-19 14:40:43 +03:00
Ivan Tomilov
477cd92585
Merge branch 'develop' of github.com:status-im/status-go into develop
2017-09-19 14:31:58 +03:00
Ivan Tomilov
27a5090ad3
Started 0.9.9-unstable
2017-09-19 14:30:02 +03:00
Adam Babik
ba963cc1bd
estimate gas if missing in sending tx using upstream ( #346 )
...
I added a call to eth_estimateGas in case gas param is missing when using the upstream. This is a little bit ugly because I create an anonymous struct to match eth_call params. I spotted this struct in go-ethereum but I don't see it's exported.
2017-09-19 14:19:18 +03:00