Dmitry Shulyak f2c6fef64c
Persist selected mail server using separate monitor (#1303)
This change allows to connect to the mail server that we were using before the app was restarted. Separate loop is listening for whisper events, and when we receive event that request was completed we will update time on a peer record.

Records are stored in leveldb. Body of the record is marshaled using json. At this point the only field is a timestamp when record was used.

This loop doesn't control connections, it only tracks what mail server we ended up using. It works asynchronously to connection management loop. Which tracks events that are related to connection state and expiry of the requests.

When app starts we look into the database and select the most recently used record. This record is added to connection management loop first. So if this server is available we will stick to using it. If we weren't able to connect to the same server in configured timeout (5s) we will try to connect to any other server from list of active servers.

closes: #1285
2018-12-12 11:39:00 +02:00
2018-12-11 09:30:35 +01:00
2018-12-10 13:53:27 +01:00
2018-12-11 11:23:47 +01:00
2018-03-23 14:58:40 +01:00
2018-12-11 11:23:47 +01:00
2018-06-08 19:10:29 +03:00
2018-12-10 13:53:27 +01:00
2018-12-10 13:53:27 +01:00
2018-12-10 13:53:27 +01:00
2016-09-21 10:00:29 +08:00
2018-12-11 09:30:35 +01:00
2018-11-05 15:02:16 +01:00
2018-12-10 14:11:19 +01:00

Status bindings for go-ethereum

TravisCI Builds GoDoc Master Build Status Develop Build Status

Docs

License

Mozilla Public License 2.0

Releasing

To create a release, first increase the VERSION file according to semantic versioning.

You can then build the artifacts for the specific platform.

Once done, you can run:

make prepare-release

and

make release release_branch={{release_branch}}

Where release_branch is the branch you are targeting. You will also need to specify some form of credentials, GITHUB_TOKEN environment variable for example.

Description
The Status module that consumes go-ethereum
https://status.im
Readme
Languages
Go 98.5%
Python 0.9%
Shell 0.3%
Makefile 0.1%
Groovy 0.1%