Commit Graph

1461 Commits

Author SHA1 Message Date
TomZ e87a45b508 May hardfork; datacarrier size max is 220 2018-04-16 11:12:08 +02:00
TomZ c8428d5402 Update bootstrap seeds 2018-04-15 22:42:07 +02:00
TomZ 096d5af5b8 Remove old options
Remove no longer useful options;
* chain (sorry, supporting the btc chain just doesn't seem worth it)
* initiatecashconnections, we only allow Cash connections now.
* flexiblehandshake, same for incoming. Reject non-cash ones.
2018-04-15 22:35:34 +02:00
TomZ a40dd928d6 Make logger create required dirs to open logfile 2018-04-11 12:19:18 +02:00
TomZ 95ea594bf2 fix typo 2018-04-11 12:19:08 +02:00
TomZ 8cdd0b78e4 Fix cornercases in integers handing of CMF
The compact-message-format has numberic limits that were not
being managed well.

This unit test makes sure we keep the limits at;

Negative number is 0x7FFFFFFF (aka INT_MIN)
Positive number max is 0xFFFFFFFFFFFFFFFF (aka ULONG_LONG_MAX)

The inconsistent limits is because the API. We use ints for negative
numbers and unsigned-longs for larger numbers.
This keeps the API simpler for the common cases.
2018-04-04 17:27:16 +02:00
TomZ 7dcac141bf Fix possible crash 2018-04-04 01:01:22 +02:00
TomZ 7a026acee2 Finish up first phase.
Handle incoming payments, show if under/overpaid and
make sure everything is properly inserted into the database.

This makes the process actually work and useful for a small business
2018-03-27 22:24:23 +02:00
TomZ fab80a99ff Make network manager connect faster 2018-03-26 17:26:06 +02:00
TomZ 3b4dc2f3aa Don't try to handle messages that are not for us 2018-03-26 17:26:06 +02:00
TomZ 3cdc7acf17 Detect and notify listeners on douple spend 2018-03-25 18:38:51 +02:00
TomZ 4af111c53d Add cmake support for qrencode 2018-03-23 18:31:00 +01:00
TomZ 3199bd3886 Make 'default' logger group based on compile unit. 2018-03-21 17:57:53 +01:00
TomZ 771cfcb5d3 Fix upnp cmake detection 2018-03-21 17:57:03 +01:00
TomZ dd742b6ab9 Add support for headerInt
Sending a message with a 'requestId' will transparantly make the reply
have that same requestId.
For easy matching of what the reply is for.
2018-03-21 17:56:56 +01:00
TomZ 9514b6f741 Improve logging, use proper loglevels. 2018-03-21 17:56:50 +01:00
TomZ c263a8d494 Improve logging of remote doing it wrong. 2018-03-21 17:56:43 +01:00
TomZ 9118faedae Without config, log to file. 2018-03-16 23:33:16 +01:00
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