1543 Commits

Author SHA1 Message Date
TomZ c65c205d31 Make debug builds connect to less nodes. 2018-03-16 23:33:16 +01:00
TomZ 21a08ec316 Fix sometimes not sending a message. 2018-03-16 23:33:16 +01:00
TomZ b4d142d933 Add Qt support to Logger 2018-03-16 23:30:27 +01:00
TomZ ed195c21e2 update command line args documentation 2018-03-08 23:03:08 +01:00
TomZ 22b91334b5 Several logging improvements;
* logs.conf now also found directly in the homedir if there is no
$HOME/.config dir
* default filename is now 'hub.log' instead of 'debug.log'
* logs.conf now also detects ALL as a keyword for section
* logs.conf now also supports 'option path [path]'
2018-03-08 19:32:14 +01:00
TomZ 4bf1558f7a Smooth over config file issues.
So, now we install the example config file

Then we follow XDG for retrieving it.
We first check XDG_CONFIG (~/.config/flowee) and if we can't find a confg
file there fall back to the data dir (~/.local/share/flowee).
2018-03-07 23:20:04 +01:00
TomZ 2f9f80bcc8 fixlets 2018-03-07 22:13:40 +01:00
TomZ 53fb30d67e Make more readable. 2018-02-20 13:52:47 +01:00
TomZ 066f9586d8 on registering an address at AddressMonitorService, search mempool.
So the service only noticed new stuff happening, like a transaction
coming in or block being mined.
With this change we get a little smarter and look in the current mempool
as well to try and match a transaction.

This should be very useful for clients that lose network connection
briefly.
2018-02-19 00:02:24 +01:00
TomZ d7b8e5ea5c Make adding uint256 to messageBuilder more generic
that way it will work for uint160 and others too
2018-02-18 15:11:17 +01:00
TomZ cc5d3bd5ce Make compile with boost 1.66 2018-02-18 01:04:41 +01:00
TomZ 74c1c6b6c6 Be a little smarter with reporting 'amount' of tx.
Now if a transaction has multiple relevant outputs we sum them for the
peer.
2018-02-17 23:35:18 +01:00
TomZ 0d3d9f0efb Add NetworkManager::setAutoApiLogin() method.
Make sure that clients can do login to the API by doing nothing more
than pointing to the filename of the api-cookie.
2018-02-17 23:33:23 +01:00
TomZ 72593ea6a5 Merge branch 'master' into pos 2018-02-17 19:02:18 +01:00
TomZ e610771119 Introduce AddressMonitorService
This service allows one to connect it and register any number of
bitcoin-addresses which will then cause any transaction or block
coming in the future lead the subscriber to get notified about
such events.
2018-02-17 14:47:51 +01:00
TomZ 9590e1b24d Update logging sections
To allow configurability, don't give the whole 1000 sections a
real component, let them be a meta-group.

Also add the upcoming POS (point of sale) component.
2018-02-17 14:47:51 +01:00
TomZ ee38f6ac09 Merge with rename to api server 2018-02-17 14:47:51 +01:00
TomZ 1e66ae1434 More streaming additions 2018-02-17 14:47:51 +01:00
TomZ 5769517646 Make MessageParser use ConstBuffer more. 2018-02-17 14:47:51 +01:00
TomZ 4635c7a7c4 Rename "AdminServer" to "APIServer"
The change signifies that the server is not just for admin purposes it
will become the preferred way for all subnet-local interactions.

Notice that we still have the JSON based RPC protocol as fallback.
2018-02-17 14:47:51 +01:00
TomZ e16353a7cc fix innocent copy/paste bug 2018-02-17 14:45:09 +01:00
TomZ 260a393411 Cleanup interface, remove unused argument. 2018-02-17 14:45:09 +01:00
TomZ 83c25cc2ec Increase number of outgoing connections. 2018-02-16 12:37:29 +01:00
TomZ 33fe0fccb5 Cleanup ValidationInterface
Get rid of the weird boost signals setup
Move it to a new library 'interfaces' which is
for stuff that has no dependencies and can avoid
creating inter-library or cicular dependencies.
2018-02-16 12:37:13 +01:00
TomZ 95325d5cdb Be consistent; lowercase the networkmanager dir. 2018-02-16 12:36:51 +01:00
TomZ ace04a5070 Remove debug sections configuration via commandline. 2018-02-16 12:36:11 +01:00
TomZ c8e401f43a Move worker-threads functionality into the util lib. 2018-02-16 12:36:06 +01:00
TomZ 8cfacf219b Add NetworkService class 2018-02-16 12:32:08 +01:00
TomZ e9b7b00ee9 Add mark_release cmake config option 2018-02-14 14:56:15 +01:00
TomZ 954948246f Make clear this content is under the same license 2018-02-14 14:26:28 +01:00
TomZ 91bd1d137a remove hack 2018-02-14 13:49:54 +01:00
TomZ c335752304 Don't make it client-verion based, just version it normally 2018-02-14 13:49:54 +01:00
TomZ fcee5dd68f Remove duplicate include 2018-02-14 13:49:54 +01:00
TomZ 4ac68439d1 Introduce CMake building 2018-02-14 13:49:54 +01:00
TomZ f5dc657a4b Start new libs/api for the API server 2018-02-14 13:49:53 +01:00
TomZ 7e737c8ea8 Start library/networkmanger 2018-02-14 13:49:53 +01:00
TomZ 5986f46a4c Create libs/console
shared between 'hub-cli' and 'hub-qt'
2018-02-13 13:27:58 +01:00
TomZ ed985bce0e Start libs/crypto 2018-02-13 13:27:58 +01:00
TomZ b76ca3a97e Start libs/utils 2018-02-13 13:27:58 +01:00
TomZ 14bf96aa3c Start libs/server 2018-02-13 13:27:58 +01:00
TomZ 7ca95926c1 Move secp256k1 to 3rdparty libs dir 2018-02-13 13:12:34 +01:00
TomZ de06599dfa move leveldb to 3rdparty libs 2018-02-13 13:12:34 +01:00
TomZ 9e6a93a620 Move univalue to new dir 2018-02-13 13:12:34 +01:00