Commit Graph

12628 Commits

Author SHA1 Message Date
tomFlowee a0e9e4c421 new version 2021-08-09 19:45:23 +02:00
tomFlowee 6692a0a11a Follow API change in NWM.
Setting the ringbuffers to not-so-tiny values
2021-08-05 23:03:19 +02:00
tomFlowee b1f6f497dd Prevent misuse of API 2021-08-05 22:43:24 +02:00
tomFlowee 4cf26ee529 Fix a very niche bug. 2021-08-05 22:42:58 +02:00
tomFlowee d355c5f0ab Make the reconnect timeout more agressive.
The first bunch of times we want to reconnect much faster so we have less
downtime and faster response.

After a while it goes up to a slower timeout in order to not overload
logs and other such.
2021-08-05 22:42:58 +02:00
tomFlowee bd3c1c3b7a Avoid a too small ring buffer. 2021-08-05 22:03:24 +02:00
tomFlowee 56f083e3b6 Ensure sane queue size
This is based on the fact that a ringbuffer is not very happy if its only
got one element.
2021-08-05 22:02:45 +02:00
tomFlowee d73763977c Avoid calls to listeners while we have a lock.
This is a library class, lets be nice to users of our class and
avoid deadlocks.
2021-07-31 18:25:24 +02:00
tomFlowee 9b2317e5c4 Fix warning from linter 2021-07-31 18:25:08 +02:00
tomFlowee 3bac1cc9e0 Add setData for CKey style data. 2021-07-31 17:36:15 +02:00
tomFlowee 77bd1ac74f Improve the SPV sync action.
This re-thinks the way we assign new peers and massively speeds up the
finding of enough peer for our wallets.
2021-07-30 16:56:25 +02:00
tomFlowee 0e6f2bec29 Add 'Last' priority. 2021-07-30 14:03:29 +02:00
tomFlowee 4411ecb2e5 Fix API docs. 2021-07-30 14:03:03 +02:00
tomFlowee 45851de8b9 Fix and add log message on action. 2021-07-30 14:02:33 +02:00
tomFlowee e998e64c8f Register task. 2021-07-30 10:01:31 +02:00
tomFlowee 0d8845386d API docs. 2021-07-30 10:01:06 +02:00
tomFlowee 47f0d955bb Add double include protection 2021-07-29 20:26:03 +02:00
tomFlowee 2308600929 Add convenience constructor. 2021-07-26 15:01:25 +02:00
tomFlowee 5e4e5f5d53 Remove useless badge. 2021-07-15 17:21:34 +02:00
tomFlowee 773eafc892 make compile 2021-07-15 13:10:05 +02:00
tomFlowee 9ec0bf9aec Don't re-connect when user calls connect()
User code may not check if it was already connected before calling
connect(), so we do it for them.
2021-07-15 12:47:27 +02:00
tomFlowee e0a41be5a3 Add API docs for this method 2021-07-15 12:47:15 +02:00
tomFlowee d2637075c2 Add more API docs 2021-07-15 12:47:01 +02:00
tomFlowee f7dcf8779d Merge branch 'master' of origin:thehub 2021-07-15 11:06:28 +02:00
tomFlowee 3447230371 [NVM] Make ipv6 based error messages better.
Avoid just appending the portnumber with a colon as that does not help
readability on ipv6 type addresses.
This now neatly adds the square brackets as needed.
2021-07-15 00:08:50 +02:00
tomFlowee 935a96746f Add API docs. 2021-07-14 11:20:06 +02:00
tomFlowee e7a229e806 Add some API docs. 2021-07-01 20:09:04 +02:00
tomFlowee da341c2be7 fix typo 2021-06-30 16:55:06 +02:00
tomFlowee e6b02da76b Add secure way to do login on incoming connections.
This adds a baseclass for clients to inherit to make it even easier to
do login. Check ConnectionAuthorizer
2021-06-27 12:37:46 +02:00
tomFlowee 0196bc8bca Remove unused variable. 2021-06-27 11:42:47 +02:00
tomFlowee 2b6b3a3d5a Fix api docs. 2021-06-26 22:17:46 +02:00
tomFlowee c8a531e6f8 Comments and fix warning
Statics should be PODs.
2021-06-24 19:10:14 +02:00
tomFlowee ae78dd0bb8 Update email address 2021-06-20 22:44:44 +02:00
tomFlowee e576187650 Some comments. 2021-06-15 22:26:14 +02:00
tomFlowee 223cc61968 Remove dead code 2021-06-12 12:20:06 +02:00
tomFlowee 41339aea30 Add txid to messsage
Closes isse #10

The message sent from the AddressMonitorService, when a matching
transaction is included in a block, now also contains the txid as well
as the offset-in-block.
2021-06-02 16:37:03 +02:00
tomFlowee d18e13b93b Add new callback on DataListenerInterface when we synched headers 2021-05-28 14:53:19 +02:00
tomFlowee 460d4be807 Add new method Blockchain::blockHeightAtTime() 2021-05-28 14:52:27 +02:00
tomFlowee d17b8f0c40 Add API docs for new static-headers method. 2021-05-28 12:42:30 +02:00
tomFlowee c45e7d9c3e [P2P] Do not save blockchain data when not changed 2021-05-27 19:08:46 +02:00
tomFlowee d1fa3fa4a9 [P2P] Allow static loading of blockheaders
This adds a unit test for the Blockchain class in the p2p lib and this
introduces the functionality to have a blockchain pre-shipped with an
app.
2021-05-27 19:08:46 +02:00
tomFlowee ccb1016ac7 Avoid deep-copying a bloomfilter when possible. 2021-05-27 19:08:46 +02:00
tomFlowee 3f91689e3e Minor refactor of bloomfilter.
Rename fields to follow the coding guidelines.
Add an isEmpty() getter.
2021-05-23 17:49:57 +02:00
tomFlowee 58ac5a536c Merge branch 'master' of origin:thehub 2021.04.0 2021-05-04 21:09:54 +02:00
tomFlowee c33299ae3a New version 2021-05-04 18:20:04 +02:00
tomFlowee f9a0050220 Update TransactionBuilder / signature type handling
The choice between Schnorr and ECDSA signatures is now per input instead
of once choice for the entire transaction.
2021-05-04 16:57:55 +02:00
tomFlowee dfdd37ad07 Fix whitespace in docs 2021-04-30 17:33:20 +02:00
tomFlowee 28af16d536 Add TransactionBuilder::pushOutputPay2Script() method
Code modified from snipped shared by user Sandurr on noise.cash.
2021-04-22 12:46:35 +02:00
tomFlowee 76fde4a94c Make the test go back to ECDSA style signatures. 2021-04-19 17:07:02 +02:00
tomFlowee c58586516d Allow for longer mock-chains of blocks.
In RegTest we have a much shorter cycle of halving, take this into
account when building blocks.
2021-04-19 17:06:15 +02:00