Commit Graph

931 Commits

Author SHA1 Message Date
TomZ d3cf544f6c Make compile on older boost 2018-06-24 23:58:08 +02:00
TomZ 68708e5dd3 Allow building when boost is not in /usr/include 2018-06-24 23:58:04 +02:00
TomZ f78aaf0fce fixlets 2018-06-14 21:57:22 +02:00
TomZ c42da8503b More fixes 2018-06-12 23:07:06 +02:00
TomZ 17a8b94234 Use nullptr and other fixes. 2018-06-12 20:43:50 +02:00
TomZ 36b7f7adb9 Use more c++ constructs 2018-06-12 19:46:40 +02:00
TomZ 3690014f02 Fixes in signedness and usage of new C++ constructs 2018-06-12 19:26:26 +02:00
TomZ e7414fbb81 Fixes for signed ness and variable sizes. 2018-06-12 18:35:04 +02:00
TomZ 0ac6c84ac6 Adjust hardcoded limits 2018-05-10 17:07:15 +02:00
TomZ f0f07153fa Remove unused tag 2018-05-10 01:25:50 +02:00
TomZ 1ac5d85f18 Implement TODO 2018-05-10 01:10:22 +02:00
TomZ 8e57f7dacb 'std::map.at()' can throw, be more careful there. 2018-05-10 00:13:57 +02:00
TomZ 886e921b89 Fix typo in methodname 2018-05-09 12:46:54 +02:00
TomZ c368c6ef77 Create new UTXO database library
The old was based on levelDB which has scalability issues and stability
issues. (most often cited problem is corrupted database..)

This unspent output database I wrote is based on the idea that we need
never actually update any rows, which makes most old fashioned databases
a bad fit.
All we do is create rows and we forget rows. So lets design a DB to fit
that pattern.
2018-05-09 10:48:16 +02:00
TomZ 23d46d85f2 Add methods to request the serialized size of ints 2018-05-09 10:48:16 +02:00
TomZ f3a6f5e3b4 Add more raw streaming features to BufferPool 2018-05-09 10:48:16 +02:00
TomZ f0e597d315 Add offsetInBlock method to TX iterator 2018-05-09 10:48:16 +02:00
TomZ 438f9d4f1b Add generic testing decorator
This integrates unit tests into the logging system
so I can see the unit test we are currently in reflected in the log-
line.
2018-05-09 10:48:16 +02:00
TomZ 1c47177aa6 Remove flextrans-testnet info 2018-05-09 10:30:15 +02:00
TomZ 062ef05a77 May Hardfork; import opcodes changes. 2018-04-16 14:42:35 +02:00
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