tomFlowee
379e950cde
Share code between projects
...
Move from the rest-server the method returnTemplatePath to the library
and reuse that in the bitcore-proxy client.
2021-02-23 17:55:26 +01:00
tomFlowee
048d5b83a8
make defaults more sane
2021-02-23 17:12:59 +01:00
tomFlowee
45df7c88e1
make pretty
2021-02-23 16:52:14 +01:00
tomFlowee
cb245f27d7
Make pretty
2021-02-23 16:52:07 +01:00
TomZ
b1f8372b10
Improve error messaging for services
...
We now no longer show the full help page after we've seen a service at
least once. Because we know its not a lack of config that caused the
issue.
2021-02-22 16:31:09 +01:00
TomZ
74be8f9304
Register losing services better
...
This implements two TODOs, we now unset the services in our registry
when they disconnect.
This allows us to run with multiple backends as failover more stable.
2021-02-22 16:31:09 +01:00
TomZ
88caaa4410
Resolve warnings from code-analyzer
2021-02-22 16:31:09 +01:00
TomZ
3dbb2672b9
Api Docs
2021-02-22 15:53:32 +01:00
TomZ
046c956230
Avoid sideeffects after a move.
2021-02-22 15:52:34 +01:00
TomZ
fcd5d6a1f9
Stop supporting Qt4
2021-02-22 15:51:28 +01:00
TomZ
1de1496350
UX fix for servers
...
We only have the option for `--debug` when it is regarding a client (as
oppossed to a server) and when we build a debug build.
Only add the option for users to set when we actually process it.
2021-02-22 14:09:19 +01:00
tomFlowee
b83fd08789
Add chainReorged msg to BlockNotificationService
...
When blocks are reverted clients likely want to know. This gives them
the information the moment it becomes clear.
2021-02-19 13:43:56 +01:00
tomFlowee
c114c9dc74
Add an extra unit test. Tests CBlockIndex
2021-02-19 13:43:56 +01:00
tomFlowee
29082a1066
Follow coding guide; lowercase method names
2021-02-19 13:43:56 +01:00
tomFlowee
23d36d764b
new minor version
2021.02.3
2021-02-18 12:05:10 +01:00
tomFlowee
9a33788090
Properly expire older items.
2021-02-18 12:03:56 +01:00
tomFlowee
64bfb5d02d
Stop using boost ptime
...
Its overly complex and too difficult to even inspect for debugging.
2021-02-18 10:06:25 +01:00
tomFlowee
950ca2569a
Refactor global threadpool usage.
...
Use C++11 features instead of boost, and force calling the reserve
method in the getter since its too easy to forget reserve otherwise.
2021-02-18 09:59:00 +01:00
tomFlowee
abfc90d99a
assert -> if
2021-02-17 22:59:35 +01:00
tomFlowee
9c3d7ddaf1
Add net protection for APIServer
2021-02-17 22:49:19 +01:00
tomFlowee
85e089b155
Calculate needed space better
...
We calculate the needed space for the network buffers before we fill them,
as new features are added guestimating ended up short.
Lets do the real calculation.
2021-02-17 17:11:24 +01:00
tomFlowee
8eeea08f99
Add support for BitcoinScriptHashed filtering
...
Server already added it before, lets allow more clients to use it.
2021-02-17 17:09:43 +01:00
tomFlowee
b6fd629892
Replace boost mutex with std
2021-02-16 22:08:16 +01:00
tomFlowee
ddfae7ed76
Add block-height fuzzing
2021.02.1
2021-02-16 19:30:11 +01:00
tomFlowee
bf88ee6218
Check inputs better
2021-02-16 19:22:33 +01:00
tomFlowee
20bdfa96a5
Increase minor version
2021-02-16 19:15:14 +01:00
tomFlowee
f22b65e93e
Fix test-instability
...
Avoid tests failing due to timing issues.
2021-02-16 19:13:05 +01:00
tomFlowee
58d7c3b4fb
Add fuzzing test for transaction fetching.
...
This test just requests a transaction for each offset in block in
sequence, meaning that our question is incorrect most of the time.
2021-02-16 19:03:44 +01:00
tomFlowee
08c04b3b25
Assume less and check the inputs better
...
Should an Tx::Iterator be created on some random data we are now
checking the read values better.
2021-02-16 18:56:13 +01:00
tomFlowee
aea317cf71
Be better at handling bad input.
...
When the transaction offset is wrong and doesn't parse we turn the
generic runtime_exception into one that goes back to the API caller.
Also catch those generic exceptions on the server level to avoid this
kind of error from disconnecting a peer.
2021-02-16 18:36:40 +01:00
tomFlowee
afdaff5188
whitespace
2021-02-15 14:09:35 +01:00
tomFlowee
4f37f4ea2f
Don't spam
2021-02-12 20:59:41 +01:00
tomFlowee
da2a8843ec
call addressUsedInOutput callback more
...
When getting data from the mempool based on address, we also want to call
the addressUsedInOutput() callback, in order to be consistent.
We pass in the blockheight and offset in block being -1, though.
2021-02-11 22:52:17 +01:00
tomFlowee
ead61dc357
Auto restart service on fail
2021-02-11 22:50:50 +01:00
tomFlowee
b4df28bd90
Avoid programming errors, add assert.
2021-02-11 15:23:35 +01:00
tomFlowee
efa23bd2db
Extend Live::GetTransaction to search on address too
...
This allows API users to search the mempool on address or on txid.
This also adds a new unit test testing this functionality
2021-02-11 15:21:54 +01:00
tomFlowee
47702ad4a4
Port getaddress to be a native call.
2021-02-11 14:15:23 +01:00
tomFlowee
d5eef9238c
Make sure filesize is a power-of-2
...
Memmapping can use any filesize, but the pages are allocated in a power
of two amount.
Assuming 4K pages we now aim to have 65536 pages to map a big file.
2021.01.1
2021-02-07 20:02:10 +01:00
tomFlowee
b9f2c23ffb
Optimize memory-access
...
A single lookup on a db file took 20 reads using a binary-search.
This change makes that around 15 reads, of MUCH more localized
manner.
2021-02-07 18:09:55 +01:00
tomFlowee
6a2dc97e25
Search harder for logs.conf
2021-02-07 18:07:22 +01:00
tomFlowee
bfcb9b0be2
whitespace fix
2021-02-07 14:28:00 +01:00
tomFlowee
a3cf6cbcd8
Switch to std::map / std::unordered_map
2021-02-07 13:46:57 +01:00
tomFlowee
7a6baf73e4
Optimize;
...
cache filesize.
2021-02-07 10:57:45 +01:00
tomFlowee
4bfe782eab
Add a little more documentation here
2021-02-06 23:18:21 +01:00
tomFlowee
c71b6fa9c0
Fix off-by one and be more consistent
...
Lets default to using the plain and simple assert(), the Q_ASSERT macro
doesn't really add anything for us.
2021-02-06 23:18:21 +01:00
tomFlowee
1deaab6cc3
Search harder for config file.
...
This gets around the sillyness where you need an extra dir for a config.
~/.config/flowee/rest-service/rest-service.conf
now you can just use
~/.config/flowee/rest-service.conf
2021-02-06 23:10:17 +01:00
tomFlowee
7df9ab4be9
Add details about the way to configure indexer
2021-02-06 20:20:43 +01:00
tomFlowee
d3f1d7f454
Whitepace and minor fixes.
2021-02-05 17:32:36 +01:00
tomFlowee
c67d720f72
Start new version.
2021-02-05 17:28:33 +01:00
tomFlowee
ceb44cc3b5
Remove dead code.
2021-02-05 17:26:40 +01:00