Commit Graph

12093 Commits

Author SHA1 Message Date
TomZ afd33b2ee0 API docs 2020-11-05 22:06:41 +01:00
TomZ 5e48d0dae7 Be smarter about when to ask for headers.
This avoids us asking a bunch of peers the headers while we are not yet
at the tip.
2020-11-05 21:54:33 +01:00
TomZ 062f62af67 Bugfixes 2020-11-05 21:49:32 +01:00
TomZ e8a2996c84 Persist succesful 'headers' call.
This fixes the issue that a headers call did not get remembered when we
were up-to-date.
2020-11-05 21:48:57 +01:00
TomZ 781805d6a9 Less waiting while finding proper peers 2020-11-05 21:47:54 +01:00
TomZ 9397ab54e6 Accept less peers for non-mainnet chains. 2020-11-05 17:42:51 +01:00
TomZ 599ef31340 Add API docs. 2020-11-05 16:56:14 +01:00
TomZ ae58d68058 Fix loop never increasing. 2020-11-05 16:56:02 +01:00
TomZ 8e2e343695 Fix out-of-range
This makes the fetching of DNS based entries work much better and
actively avoids an off-by-one issue when accessing the vector.
2020-11-05 16:55:38 +01:00
TomZ a337c6b6b5 Use consistent variable typing.
Use uint8 and friends instead.
2020-10-31 19:51:04 +01:00
TomZ 8796dc4b7d Add support for testnet addresses
Notice that we only use 2 type of base58 prefixes, mainnet and everything
else. So this support all worthless chains.
2020-10-30 18:08:09 +01:00
TomZ f7729fd08d Update chainparams for the scalenet. 2020-10-30 15:39:56 +01:00
TomZ 376fe9dc86 On startup, start downloading headers
In most cases headers would be automatically downloaded if we didn't
connect to that peer for a while, but that is not a guarentee so lets
make sure we actually start downloading headers from any peer we can :)
2020-10-29 22:18:10 +01:00
TomZ 3f5fe41534 P2PNet: Support multiple chains.
This adds support for the testnet4 chain.
2020-10-29 21:47:53 +01:00
TomZ bf8e4aa3fc Remove silly checkpoint. 2020-10-29 20:17:15 +01:00
TomZ 60f754ef58 Make reindex not delete the 'unspent' dir, but its contents
This is a feature request following the fact that some sysops use a
symlink for the unspent dir and don't want the reindex to delete the
symlink itself.
2020-10-29 18:56:04 +01:00
TomZ 2d90ade9d2 Update specification for testnet4 to actually validate.
Specifically: SCRIPT_ENABLE_SCHNORR.
2020-10-29 18:56:04 +01:00
TomZ 016d9565f2 Remove old detection of outdated UTXO
We have had our new format for so long, this only can give false-
positives now.
2020-10-29 18:56:04 +01:00
TomZ cb19e245ad Remove obsolete file 2020-10-29 18:56:04 +01:00
TomZ 027c1a19d4 Don't ban without logline. 2020-10-28 22:06:15 +01:00
TomZ 6d330622f2 Handle whitelisted nodes different for DSProof punishment. 2020-10-27 16:33:08 +01:00
TomZ 5d9e290f41 Add TODO for async usage 2020-10-27 16:33:08 +01:00
TomZ 42d883d418 A block inherits its 'tree' status. 2020-10-27 16:33:08 +01:00
TomZ 7248251a5a Fix warning.
Avoid std::move here.
2020-10-27 16:33:08 +01:00
TomZ 67cf8955b0 Drop usage of old log-style. 2020-10-27 16:33:08 +01:00
TomZ 4a183dee98 Add needed include 2020-10-26 22:38:28 +01:00
TomZ 0264b6aac4 Less noisy logs
Now it takes less than a second to generate 1MB of transactions, we log
progress only once every 10 MB.
2020-10-26 22:03:25 +01:00
TomZ 86b409db85 Clarify the parameter is in MB 2020-10-26 21:54:07 +01:00
TomZ 16743f95bb Move vulcano wallet to app-dir
I'd say that leaving it in the current dir just didn't make much
sense...
2020-10-26 21:53:49 +01:00
TomZ 4f983faefd Also override mempool limits 2020-10-26 19:07:52 +01:00
TomZ b104025f12 Ensure memory leaks are impossible
unique_ptr all the way, baby.
2020-10-26 18:30:39 +01:00
TomZ e7b0995b1a Make testnet4 have standardness rules on 2020-10-26 18:21:52 +01:00
TomZ 4054b9a7d4 Avoid (re)connecting to incoming peer. 2020-10-26 18:21:52 +01:00
TomZ 7aa4ed4820 Increase version number. 2020-10-26 18:21:52 +01:00
TomZ 5d8ac92e7b Use the async submit transaction new API call. 2020-10-26 18:21:52 +01:00
TomZ ff58ae6a36 Implement the first ASync API command
This implements the sendTransaction command using the async framework,
allowing clients to benefit from multi-core systems to process
transactions in parallel when being submitted to the Hub.
2020-10-26 18:21:52 +01:00
TomZ cd6937a672 Set the proper default log section specific libs 2020-10-25 23:43:42 +01:00
TomZ 331f1ec773 Fix regression in NWM that disconnects sometimes
This fixes the logic that finds out it should resume an interrupted
process. The code had false positives in case of a message split over
multiple TCP frames.
2020-10-25 23:42:49 +01:00
TomZ a4800171b5 remove commented out code 2020-10-23 23:05:37 +02:00
TomZ b901745139 Add getters. 2020-10-23 22:33:33 +02:00
TomZ 267e5bf142 Fix typo in comment. 2020-10-23 22:33:24 +02:00
TomZ 4b0bcf7bc9 Add priority to privacySegment
We connect to the "first" priority stated segments first, in order to
allow the UX to be made much better since it may take a bit of time to
find peers.
2020-10-19 14:04:57 +02:00
TomZ bf10876914 Add new callback on DataListenerInterface
virtual void setLastSynchedBlockHeight(int height);
2020-10-17 17:25:05 +02:00
TomZ 112ee10f75 Remove stray semicolon 2020-10-17 17:24:45 +02:00
TomZ ff0cec682e Minor cleanups
Avoid copy/paste of comments.
Remove double semicolons.
Add new seeder.
2020-10-13 19:27:35 +02:00
TomZ 029885c401 Differentiate splash colors 2020-10-04 00:56:01 +02:00
TomZ 7df652e9b6 fixlets 2020-10-04 00:16:15 +02:00
Tom Zander 81095ca7fd Merge branch 'feature/Testnet4_Scalenet' into 'master'
Add TestNetv4 and ScaleNet chains

See merge request FloweeTheHub/thehub!18
2020-10-03 21:04:53 +00:00
Justaphf 1494fa8c1f fixup: typo 2020-10-03 10:39:21 -04:00
Justaphf 3c458e24a3 Fix deploy step for branches with / in name 2020-10-02 20:06:22 -04:00