Andrea Maria Piana
9e89efd859
Allow multiple db implementations
...
This commit creates an interface to use with the db so that we can
abstract what kind of db we use, therefore allowing us to chose db based
on config.
2019-05-15 11:01:34 +02:00
Igor Mandrigin
10fc860a5f
fix parameters parsing for eth_* filters subscriptions ( #1461 )
2019-05-10 12:56:58 +02:00
Andrea Maria Piana
061f10e58d
Publish rlp.RawValue instead of envelope ( #1459 )
...
As part of a performance profiling of mailserver we noticed that most of
the resources on a query are spend decoding the whisper envelope.
This PR changes the way we store envelopes encoding the Topic into the
database key, so we can check that and we are able to publish the
envelope rawValue if it matches.
The change is backward compatible as only newly added envelopes will
have the new key, while old ones will have to be unmarshaled.
2019-05-09 12:58:02 +02:00
Igor Mandrigin
7002311f96
bump version to 0.25 (new API for subscriptions) ( #1460 )
2019-05-09 12:32:07 +02:00
Dmitry Shulyak
21f9f09586
Bump version to 0.24.0-beta.4 ( #1458 )
2019-05-07 09:06:14 +02:00
Igor Mandrigin
4c1f96d255
Implement subscription for eth and shh filters using signals. ( #1455 )
2019-05-07 09:05:38 +02:00
Dmitry Shulyak
74b29ed4f3
Export logs content with hexary encoding ( #1457 )
2019-05-06 19:08:47 +03:00
Dmitry Shulyak
14c513bd5a
Execute writes atomically only after request was processed without errors ( #1454 )
...
* Replace request ID when same request is restarted
* Remove unnecessary changes
* Execute all writes atomically only if request was processed succesfully
* Fix linter
* Fix shadowed errors
* Fix spelling
* Do not append same reference to a byte slice
2019-05-06 09:33:19 +03:00
Dmitry Shulyak
cba00153e2
Replace request ID when same request is restarted ( #1453 )
2019-05-01 12:33:18 +02:00
Dmitry Shulyak
218a35e609
Notify users that envelope was discarded and retry sending it ( #1446 )
...
API for querying mail servers that skips already received data on subsequent requests
2019-04-30 09:46:12 +03:00
Andrea Franz
28ec255d77
fix HashMessage to decode hex only if needed ( #1450 )
...
* hash message expects a string and not a hex string
* refactor HashMessage
* swap returned values
2019-04-30 01:26:41 +02:00
Andrea Maria Piana
354e6981ba
Add network incentivisation service ( #1452 )
2019-04-29 14:05:49 +02:00
Jakub Sokołowski
1a4fe50971
add a short doc about config.json
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-25 16:20:11 +02:00
Dmitry Shulyak
cb8b30c78f
Bump minor version ( #1448 )
2019-04-24 10:53:29 +03:00
Dmitry Shulyak
866342d5e3
Update whisper to v1.4.12 ( #1447 )
2019-04-23 20:16:48 +03:00
Dmitry Shulyak
64188f0702
Deliver envelopes in forward order ( #1437 )
2019-04-23 10:04:58 +03:00
Igor Mandrigin
056bf367a7
Expose vanilla ECDSA signing ( #1444 )
2019-04-18 15:52:08 +02:00
Dmitry Shulyak
442a12e996
Removing discovery-proxy from sources ( #1445 )
...
It was going to be used as proxy from discv5 to rendezvous for les nodes.
We are not using it at the moment, and not clear when we will be using it
and if we are going to use it all.
Additionally it has some memory leaks that need to be fixed, so it is better
to remove it for now and restore once/if we will need it again.
2019-04-18 10:39:55 +03:00
Jakub
2c0c0fff24
fix release builds ( #1440 )
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-15 11:57:06 +02:00
Jakub Sokołowski
2af27dc6b3
build regular linux binary with xgo for uploading to GitHub
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-14 18:14:02 +02:00
Dmitry Shulyak
a904d9325e
Notify users that envelope was discarded and retry sending it ( #1424 )
...
* Notify users that envelope was discarded and retry sending it
* Update Gopkg files with released whisper version
* Forgot to remove signal after refactoring
2019-04-02 13:40:45 +03:00
Jakub Sokołowski
96aba9f3af
explicitly enable whisper for mailserver
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-01 14:38:41 +02:00
Jakub Sokołowski
3c6d10b597
bootnodes listen on UDP
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-01 12:14:18 +02:00
Jakub
bf209cff85
don't overwrite linux build variable with docker build ( #1431 )
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-29 18:49:18 +01:00
Andrea Maria Piana
f5875d62c5
Fetch multiple nodes from contract ( #1430 )
2019-03-29 18:49:01 +01:00
Andrea Maria Piana
8baae97e2e
Add GetNodesFromContract endpoint
...
We added an endpoint that given an RPC url and a contract will fetch a
list of nodes and return them to the client.
2019-03-29 12:55:54 +01:00
Adam Babik
4c1b6c12e4
[Chaos Unicorn] Expose ChaosModeUpdate ( #1422 )
2019-03-29 12:55:54 +01:00
Andrea Franz
8fe14e8f23
hash typed data ( #1426 )
...
* add HashTypedData to backend
* add HashTypedData to backand, lib, and mobile
* rename typeddata.Hash to typeddata.ValidateAndHash
2019-03-28 15:56:21 +01:00
Jakub Sokołowski
b80a9f5aaa
add explicit TMPDIR, otherwise go get fails
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-28 09:55:34 +01:00
Jakub Sokołowski
d38a07f679
add Jenkinsfile.docker for pushing new images
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-26 09:14:56 +01:00
Jakub Sokołowski
a4453a2471
forgot to update main README with link to instructions
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-25 09:47:16 +01:00
Jakub Sokołowski
2766372eca
add compose setup for a bootnode
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-21 16:42:44 +01:00
Andrea Franz
a61c0368bc
add HashMessage to backend, lib, and mobile. ( #1421 )
...
* add HashMessage to backend, lib, and mobile.
* move HashMessage out of the backend struct
* fix comment typo
2019-03-21 11:48:47 +01:00
Dmitry
eeaf669006
Add goerli testnet
2019-03-19 10:56:09 +02:00
Adam Babik
c3b0644bbc
prefix git tag with 'v' ( #1418 )
2019-03-18 09:14:21 +01:00
Adam Babik
77c004f6ba
bump version 0.23.0-beta.9
2019-03-15 14:55:21 +01:00
Adam Babik
4b790adf34
add shhext_requestMessagesNew ( #1412 )
2019-03-15 14:27:08 +01:00
Dmitry
9441f798bb
Remove mock step from ci pipeline
2019-03-15 08:14:53 +02:00
Dmitry
af403280a6
Upgrade geth to 1.8.23 (includes necessary whisper update)
2019-03-14 14:39:31 +02:00
Andrea Maria Piana
b574e3e53f
Default limit & upper bound ( #1411 )
...
We allow the user not to specify an upper bound, in which case it will
default to Time.Now() + 60 seconds, to accomodate for messages with
higher timestamp.
Limit is also defaulted to 2000 if not set.
We removed as well the 24 hours limitation as now all the requests will
come with a limit.
2019-03-12 12:14:35 +01:00
Dmitry
5bce7e793f
Redirect log output to mobile system loggers
2019-03-07 17:07:12 +02:00
Dmitry
b2f02d0dbe
Use go-ethereum with fixed logger
2019-03-07 16:26:20 +02:00
Andrey
44ee59b4eb
Bump version to 0.23.0-beta.8
...
Bump version to 0.23.0-beta.8
2019-03-05 14:57:07 +01:00
Jakub Sokołowski
bb628ff539
add .gitkeep to build/bin so it always exists
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-05 14:22:00 +01:00
Jakub Sokołowski
cbe50f557c
move running tests to a separate jenkins job
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-05 08:11:32 +01:00
Dmitry Shulyak
3da1c54848
Add a method to mobile bindings that allows to dump content of the logs files ( #1402 )
2019-03-04 16:33:48 +02:00
Dmitry Shulyak
ea19896623
Export SignTypedData in mobile bindings ( #1403 )
2019-03-04 14:45:27 +01:00
Andrea Franz
b3e2cb2965
validate signature size on SendTransactionWithSignature ( #1401 )
...
* chekc signature size to avoid panic from go-ethereum
* add comment and constant
* add test
2019-03-01 14:49:30 +01:00
Dmitry Shulyak
cf8f20b23c
Use lumberjack library to rotate logs and add config that enables it ( #1399 )
2019-03-01 14:37:13 +01:00
Dmitry Shulyak
aa28f652e3
Re-send user payload if previously sent envelope wasn't acknowledged ( #1386 )
...
* Split shhext.tracker into envelopes and mail monitors
* Send envelopes on every new attempt to deliver a message
* Re-send user payloads if previous envelopes weren't acknowledged
* Remove debug api across the codebase
2019-03-01 14:36:21 +01:00