Commit Graph

12716 Commits

Author SHA1 Message Date
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
tomFlowee 793e4ed48d Fix warning: add assignement operator when we have copy-constructor. 2021-04-19 16:29:23 +02:00
tomFlowee f163e942a7 Add Schnorr unit tests 2021-04-19 16:28:54 +02:00
tomFlowee ec5e563125 Make TransactionBuilder sign using Schnorr by default. 2021-04-19 16:09:42 +02:00
tomFlowee 6d33d187d4 Add new CKey::signSchnorr() method. 2021-04-19 15:49:56 +02:00
tomFlowee 6682a4a5b2 Rename CKey::Sign() -> signECDSA() 2021-04-19 15:45:02 +02:00
tomFlowee fcb648916d Make pubkey follow coding styleguide 2021-04-19 14:48:18 +02:00
tomFlowee ea38ab6de5 Make ping more agressive.
For native connections we ping in order to disconnect stale connections.
This ensures that pings are sent more agressive, via the priority queue,
and we delay the disconnect to 150s.

So, pings more agressive, disconnects less agressive.
2021-04-19 11:31:53 +02:00
tomFlowee 6e7a54b7d4 [GUI] Update service bits. 2021-04-19 11:29:45 +02:00
tomFlowee 00a29b1df9 Merge branch 'master' of origin:thehub 2021-04-09 13:11:20 +02:00
tomFlowee 72b47b276f Move disk-free-checker to later in the process
This avoids issues where we check for disk space before
the databases are created.
2021-04-05 13:28:27 +02:00
tomFlowee 6142efc7e1 Fix lifetime of the diskSpaceChecker class
As the DiskSpaceChecker owns a deadlinetimer, which depends on the asio
io_service, we need to ensure it is destructed before the io_service is.

The io_service, and now the diskSpaceChecker as well, are specifically
shut down, in order.
Application is still a singleton that dies after main() ends, but will
have nearly no members at that time.
2021-04-05 11:36:31 +02:00
tomFlowee 30021be356 Add binding addresses whitelisted for API filters 2021-04-04 17:08:21 +02:00