Commit Graph

11775 Commits

Author SHA1 Message Date
TomZ 44c9b9835c Merge branch '2019.05' 2019-05-17 21:01:31 +02:00
TomZ 0282e4b2a3 Set first version allowed for AddressMonitor to be 2019-5.1 2019-05-17 20:48:21 +02:00
TomZ a1c9e80db0 Make APIs internally consistent.
Where we wrap the old RPC code we need to revert the byte-order from the
strings created there for the uint256.

This simplyfies the code by introducing a helper method.
2019-05-17 20:48:16 +02:00
TomZ e6ce7546f2 Master is not "release" 2019-05-17 12:43:26 +02:00
TomZ 6caba39496 Start version 2019.5 2019-05-17 12:40:42 +02:00
TomZ 715a3371fd Merge branch '2019.04' 2019-05-17 12:39:15 +02:00
TomZ 1f52ae7a7f FloweeServiceApplication: support net wildcard
For service applications that bind to networks (currently
only indexer) this allows users to pass the address:
    0.0.0.0
to bind to. The effect will be that we find all the network
interfaces in the system and bind to all of them.
Notice that we already had "localhost" as an alias to bind to both
v4 and v6 loopback interfaces.

This new feature depends on optional dependency QtNetwork.
2019-05-17 12:32:11 +02:00
TomZ eab28b6d53 Version 2019.04.2 2019-05-15 21:08:55 +02:00
TomZ 6a8313252d Merge branch '2019.04' 2019-05-15 20:45:18 +02:00
TomZ 5996205a07 add checkpoint and set PU blockheight 2019-05-15 20:44:47 +02:00
TomZ 4addb23158 Fix off-by-one
This is rather embarrasing, but I have to ask why fully synching the
testnet created precisely for this fork (to the same height as the
explorers) didn't fail. Did it not have any schnorr signatures? Otherwise
this bug would have shown.  What good is a testnet then?
2019-05-15 20:17:55 +02:00
TomZ 34bcbd775e comment out debug log 2019-05-15 19:55:18 +02:00
TomZ ba2216d582 Add to CLI clients verbose/quiet options
All client apps (=connecting to a server only) now gained the  verbose
and quiet command line arguments to select a different level of
verbosity.

Servers don't need this as they use a config file.

This also makes the --debug option only for debug builds as the logging
system already doesn't compile in debug statements otherwise, it makes
little sense to try to print them.
2019-05-13 18:27:09 +02:00
TomZ f90602c073 Make debian package work 2019-05-13 17:53:55 +02:00
TomZ 7fbb6772de NWM: Promote some debug level to warn/info 2019-05-13 12:20:57 +02:00
TomZ 550583305a Be consistent between apps, add help option to pos 2019-05-13 12:20:57 +02:00
TomZ 2fc4a8aa62 Make generated zip file use subdir 2019-05-13 12:20:57 +02:00
TomZ ffb4196434 Add conf and systemd files to install 2019-05-13 12:20:57 +02:00
TomZ 22fd85bd20 Allow -testnet to be set in a config file.
Should a user point to a config file with the option `-conf` then
we will read the testnet/regtest options from that file.

This does not change the old behavior. To be clear;
Should a user pass -regtest on the commandline (and not -conf) then
we will only read the config file from the regtest subdir
(~/.config/flowee/regtest).
2019-05-12 11:04:04 +02:00
TomZ 5b155600d9 Make app arguments more consitent
Now everyone auto-connects to localhost unless passed the
option --connect=

Also make indexer find the logs.conf from the same dir as the
commandline passed config file.

This makes running it as a service more useful.
2019-05-09 12:16:11 +02:00
TomZ 8694c4467c Add indexer service file (systemd) 2019-05-09 12:16:11 +02:00
TomZ 8d716cba28 Allow log path to be a dir
Allow logs.conf to supply the file-path as an (existing) directory which
will lead to the result of opening the standard filename in that dir.
2019-05-08 17:04:09 +02:00
TomZ 714c418ff5 Port txVulcano to use the FloweeServiceApplication 2019-05-08 13:18:09 +02:00
TomZ 4995215f2d Fix API inconsistencies
The rule is that all sha256s are serialized like they are printed (so
zeros first for a blockID), this updates various places in the API did
reversed this order.
2019-05-08 12:49:33 +02:00
TomZ d450b73358 revert adding reproducable_build cmake option 2019-05-08 11:15:54 +02:00
TomZ 26747573f7 Import protocol version numbers 2019-05-08 10:53:18 +02:00
TomZ e1388b8ce7 Disconnect nodes that follow a different chain
Nodes that follow a different chain (and thus send us headers that we
already invalidated) now get an immediate disconnect whereas before
we could keep them around for an hour.
2019-05-08 10:51:46 +02:00
TomZ 32c45610cd Further fixes for cashier / PoS
Also upgrade the cashier app with logging, ctrl-c catching
and debug + version command line arguments.

Last, this checks the server version and exits if the Hub
version is too old.
2019-05-08 09:07:17 +02:00
TomZ e4e2ef4193 Make the pos commandline use the FloweeServiceApplication
this has the direct effect that logging works better there.
2019-05-07 20:54:26 +02:00
TomZ 8d81cc5471 Create new lib apputils
This lib depends on QtCore, as such it is separated from other libs. As
many apps depend on QtCore we can share classes here to avoid
duplication.
2019-05-07 20:53:22 +02:00
TomZ 82a8e137bb API reviews
Rename 'RawTransaction' to 'LiveTransactions'
Review the AddressMonitorService.
Cleanup and remove some unused items (but keep binary compatible).
2019-05-06 20:13:10 +02:00
TomZ e137a7b59f Add simple memcpy constructor to KeyId / uint160 2019-05-06 14:45:12 +02:00
TomZ 5fae218cb6 Fix test being unstable on CI
The test assumed at least 2 cores, if you go below that (as the CI
dockers did) then we need to be aware of race-conditions when checking
on the status of the validation.
2019-04-29 10:25:29 +02:00
TomZ 8e191f6fd5 Implement some TODOs in blockvalidation 2019-04-28 23:02:58 +02:00
TomZ 31c0b25fb6 Fix synchronisation issues in test 2019-04-23 13:11:51 +02:00
TomZ a7f9b9fed5 Remove obsolete code.
Remove txIndex option, its move to Flowee Indexer

Also remove the GUI option for setting the amount
of "script validator threads". :D

Remove DBCash command line option too, equally obsolete.
2019-04-22 21:16:10 +02:00
TomZ d20dd6d70a Cleanup; block-pruning
This has been commented out code for some time and its probably best to
remove dead code so as to avoid it rotting.
2019-04-22 20:33:49 +02:00
TomZ d8505020d6 CI: rename zip file to contain more than just Hub 2019-04-22 13:19:49 +02:00
TomZ 949d9c7896 Make branch 2019.04 the latest docker 2019-04-22 13:19:11 +02:00
TomZ cfbab52372 Merge branch '2019.03' into 2019.04 2019-04-22 13:18:59 +02:00
TomZ 9b45fbd961 remove 'latest' docker tag 2019-04-22 13:12:14 +02:00
TomZ c20356896f Set release to 2019.4 2019-04-22 13:10:51 +02:00
TomZ 2577b6f7ef Merge branch 'may19PU' 2019-04-22 12:51:07 +02:00
TomZ 5c7caf35e4 Merge branch '2019.03' 2019-04-22 12:50:21 +02:00
TomZ eca66d8734 Add 'rollback' unit test and make it pass 2019-04-22 12:50:09 +02:00
TomZ 5dcc687273 Promote BlockValidation test
This includes a little refactor to make the test init and cleanup
after each individual unit.
2019-04-22 12:49:53 +02:00
TomZ b0eb502688 Make start date configurable
introducing: -hf201905-activationtime
2019-04-21 17:45:40 +02:00
TomZ 932cd03ad9 Import blockheights of upgrades on testnet 2019-04-21 17:42:49 +02:00
TomZ d8b9d79f2f Use block-height for DAA PU (201711) 2019-04-21 17:41:47 +02:00
TomZ 4112306616 minor; debug output update 2019-04-21 17:33:00 +02:00