Commit Graph

11739 Commits

Author SHA1 Message Date
TomZ 14cd5397db Add convenience methods to ConstBuffer 2019-10-05 16:08:37 +02:00
TomZ 0e62640ba9 SQL DISTINCT is a keyword, make it DB agnostic 2019-10-02 17:41:36 +02:00
TomZ 5c5967c9cf Use Message::reply() and remove some boilerplate code. 2019-10-02 17:39:11 +02:00
TomZ 89c0f15955 Use Message::reply() and remove some boilerplate code. 2019-10-02 16:44:20 +02:00
TomZ 6a66e89c21 update bitcore-proxy docker rules 2019-09-23 16:48:08 +02:00
TomZ 4835a8e044 Disable bitcore-proxy on missing Qt5Network
This fixes building in the static CI container
2019-09-23 11:59:56 +02:00
TomZ 7128284cf9 Start a new project 'bitcore-proxy'.
The very famous bitcore project presents an JSON based service which
presents blockchain data. This application aims to duplicate all the same
functionality but by using Flowee services instead.
2019-09-23 11:07:45 +02:00
TomZ 2e37162aa1 AppUtils lib; add search API
The core APIs in Flowee are quite low-level and especially combining
results from multiple services becomes tedius, verbose and thus
error-prone.

For this reason I wrote a new SearchEngine and related classes which
allow one to create a single compound request, submit it to the engine and
get a callback when it is done.

For instance one can now create a request for a transaction by txid and the
system will split this into a txid-lookup and the actual fetch for the
transaction.
Enough callbacks and options exist to be able to add a lot more details
this way in a simple manner.
2019-09-23 11:03:36 +02:00
TomZ 5d3b765823 Fix order initialization warning 2019-09-23 11:01:05 +02:00
TomZ 7390bea9eb Use proper integer width in api. 2019-09-13 23:45:53 +02:00
TomZ 817682025d API make utxo also react to offsetinblock
Since all the APIs use blockheight/offsetinblock instead of TXID we
should be consistent and allow the UTXO fetch API to use this too.
2019-09-13 16:02:22 +02:00
TomZ 6b50a75053 Fix typo in comments 2019-09-13 15:12:54 +02:00
TomZ 449081c476 Turns out, moving the connection is unwanted
Specifically when its returned from a method call.

Static code inspector concludes the std::move prohibits the compiler to
optimize this better.
2019-09-12 15:25:43 +02:00
TomZ 4a6845ff76 Fixlets from static code inspector 2019-09-12 15:24:03 +02:00
TomZ c6e48e2e11 Be much more consistent with our types
(socket) ports are uint16_t
log-debug sections are shorts.
2019-09-12 15:23:30 +02:00
TomZ aa15896386 Fix constness and use nullptr 2019-09-12 15:22:34 +02:00
TomZ 425ee250cb Fixlets from static code inspector 2019-09-12 15:21:48 +02:00
TomZ c2fe9629c1 Remove dead code. 2019-09-12 15:20:29 +02:00
TomZ 7f68435818 Fixes in the pos-cli docker documentation 2019-09-08 20:52:23 +02:00
TomZ c5c25a5e29 Minor usability fix
Avoid confusing naming and consistent casing.
2019-09-08 20:51:25 +02:00
TomZ 1160ce6289 fix link 2019-09-08 20:44:30 +02:00
TomZ d751261eb9 Fix typo 2019-09-08 20:43:01 +02:00
TomZ d139222976 Document the docker containers 2019-09-08 20:43:01 +02:00
TomZ 0e06708bf7 Merge branch 'macOS' 2019-09-08 17:18:50 +02:00
TomZ 300d959b9e On MacOS Qt Gui apps don't link.
On MacOS compilation requires linking in bundles from the Qt libs,
which on the testers computer didn't happen and as such I'll just
disable the GUI compile for now on MacOS so focus can be had on
already working stuff.
2019-09-08 14:27:12 +02:00
TomZ be40a7832f Add another hint for brew users 2019-09-07 22:17:04 +02:00
TomZ 860104c28f This was needed to find lib event_pthread on macos 2019-09-07 21:43:30 +02:00
TomZ 028fff30a2 Make clang happy 2019-09-07 20:26:53 +02:00
TomZ 139d848bf7 Switch to CMakes CHECK_CXX_SOURCE_COMPILES 2019-09-07 20:04:31 +02:00
TomZ e1ef92a724 Small MacOS fixes 2019-09-07 19:53:50 +02:00
Tom Zander 55f6aaaed4 Merge branch 'gitignore' into 'master'
Add .gitignore

See merge request FloweeTheHub/thehub!11
2019-09-07 17:01:38 +00:00
Jason Dreyzehner 38bfc3e653 Add .gitignore 2019-09-06 19:08:33 -04:00
TomZ 8133ffa782 Update Readme to clarify the copyright origins 2019-09-06 20:01:19 +02:00
TomZ 40f2e67db8 Fix removing of proof after tx removal
Including new unit test.
2019-09-04 14:12:38 +02:00
TomZ fc8360b507 Fix whitespace 2019-09-04 14:12:38 +02:00
TomZ 0412ae756a Simplify this code
This removes some of the experimental additions that no longer are
used and as such restores the older, simpler, design.
2019-09-04 14:12:38 +02:00
TomZ 364918766b Remove obsolete code 2019-09-04 14:12:28 +02:00
Tom Zander 6620289f8c Merge branch 'dsproof' into 'master'
Doublespendproof

See merge request FloweeTheHub/thehub!10
2019-09-03 14:21:51 +00:00
TomZ 1dbb23224c Add unit tests for double spend proof 2019-09-02 23:59:52 +02:00
TomZ 37b359cdac Implement network awareness of double-spend-proof 2019-09-02 23:57:46 +02:00
TomZ 57220bb124 Handle doublespend proof message in AddressMonitor 2019-09-02 23:55:46 +02:00
TomZ 6cda85e79f Catch DSP exception and pass to interface 2019-09-02 23:54:43 +02:00
TomZ 19bbfe4ce0 Add the concept of DoubleSpendProofs
The DSP is owned by the DoubleSpendProofStorage, which in turn
is owned by the mempool.
Each mempool-entry can refer to one proof.
2019-09-02 23:33:12 +02:00
TomZ 9ca3a908fa move tipValidationFlags() to Validation::Engine 2019-09-02 23:24:28 +02:00
TomZ 83d455a5d4 Help devops with more info. 2019-08-29 22:33:57 +02:00
TomZ af21b46574 Also support p2sh bitcoincash address entry in the GUI.
Notice that the GUI as well as the wallets are not shipped, this is
purely for operator convenience.
2019-08-29 22:33:57 +02:00
TomZ b6c4ac6f88 Fixes in SQL speed
This explicitly detects the initial sync and refuses to create
any indexes on the SQL databases during this massive insert stage.

Some other minor issues got fixed here too.
2019-08-29 22:33:57 +02:00
TomZ c661cbab68 make CI a bit more stable 2019-08-28 11:55:25 +02:00
TomZ ca04454251 Mention needed package in readme. 2019-08-26 20:48:37 +02:00
TomZ 0b152570ee Add ConstBuffer::startsWith()
and include unit test.
2019-08-26 20:48:12 +02:00