13054 Commits

Author SHA1 Message Date
tomFlowee e18d78d30e Remove include 2026-05-07 10:37:09 +02:00
tomFlowee 2a53899909 Print message before failing. 2026-05-05 09:05:35 +02:00
tomFlowee b48aa63b58 Add booleans and block heights for upgrades. 2026-05-05 09:05:35 +02:00
tomFlowee f53daa79f6 Cleanup
This removes the transaction-signing code from the hub internal codebase.
The only user for this was the API call signrawtransaction,
and a lot of unit testing code.
I'd argue that if the user needs to send a private key to the hub via
RPC for signing his transaction, then they are doing it wrong.

This also removes the duplicate test double_spend which tests
functionality also tested in the DoubleSpendProofTest.

As an aside, the flowee/utils library still has full signing capability
and we suggest using the TransactionBuilder API for that.
2026-05-05 00:39:16 +02:00
John Galt d6c9886071 Avoid incorrectly detecting an error
This checks only the data inside of the leaf.
2026-05-04 21:48:45 +02:00
tomFlowee aa7f639e79 Fix assert and add comment. 2026-05-04 21:32:08 +02:00
tomFlowee 37f6039898 Remove unused include 2026-05-04 21:32:08 +02:00
tomFlowee 648f348c3a Apply best header to the header tip
This uses the header longest chain if that is longer than the fully
validated chain.
2026-05-04 21:32:08 +02:00
John Galt 26ee594ef5 validation: rescan live full-block arrivals 2026-05-04 21:31:35 +02:00
John Galt f1067b0744 NWM: prioritize pong replies under queue pressure
Rationale: pong responses should use the priority queue so they
are not stranded behind normal-backlog traffic.
2026-05-04 19:13:17 +02:00
tomFlowee 5bd01e0752 Fix threading issues
The binds to the executor now use the strand for more callbacks and
avoid race conditions that way.
2026-05-04 17:11:16 +02:00
tomFlowee bb36475f45 Avoid calls to throwing methods. 2026-05-04 15:45:46 +02:00
tomFlowee 69d4c03e48 Use shared from this, instead of 'this' in callbacks.
Defensive programming, really.
2026-05-04 15:29:24 +02:00
tomFlowee d71aeb7b40 Add support for p2sh32 2026-04-22 17:01:26 +02:00
tomFlowee d819e0fa4c Make p2sh address extraction work.
This now uses the proper prefix/postfix to detect a p2sh.
2026-04-22 13:28:53 +02:00
tomFlowee 25b91d9a48 Make this into a simple for loop
The usage of std::equal is tricky due to the lack of length
variable. This avoids any off-by-one issues.
2026-04-21 00:39:52 +02:00
tomFlowee a1ccedb592 new version 2026-04-20 22:59:58 +02:00
tomFlowee c3e2f98b75 Remove expensive and not used ToString() methods.
The mining code still called that, this replaces it with standard
log lines that cost less at runtime and keeps the code that is
rarely run away from the shared parts.
2026-04-20 22:45:56 +02:00
tomFlowee 7db4a84bc3 Fix the way that orphan flushing is done.
Also use a faster container for fetching orphans.
2026-04-20 22:21:18 +02:00
tomFlowee f3dc67d3e1 Make faster. 2026-04-20 22:21:18 +02:00
tomFlowee 5e8ff4b718 Fix buffer size. 2026-04-20 22:21:18 +02:00
tomFlowee 0a2e552168 Move more logic over to byte-array based Block
This introduces a new BlockHeader helper class which Block and
MutableBlock can both produce, which helps a lot of methods to
be ported to no longer be dependent on us using a MutableBlock
object, which is too costly to use when we have no intention
to alter the block.
2026-04-20 22:21:18 +02:00
tomFlowee 6cf5cdb8c3 Use unique test names. 2026-04-15 20:58:20 +02:00
tomFlowee 6cb1f97700 Move checking for space to the proper place. 2026-04-15 14:16:33 +02:00
tomFlowee 9aa590cc62 Fix rare benchmark measurement issue. 2026-04-15 14:15:57 +02:00
tomFlowee 03ec8f65aa minor textual changes 2026-04-15 00:07:09 +02:00
tomFlowee d7b46c7cea Update numbers to 2026 2026-04-15 00:07:09 +02:00
tomFlowee 900e790bf0 Avoid warning: make more =default. 2026-04-15 00:07:09 +02:00
tomFlowee 25f9e6979c Changes to use the new format
For transaction::checkTransaction():
this in practice avoids lots of mallocs and overhead while doing
transaction checks.

For merkleroot, the same benefits. Avoiding copying and mallocs.
2026-04-15 00:07:09 +02:00
tomFlowee ff4a433173 Remove dead code. 2026-04-15 00:07:09 +02:00
tomFlowee a47dbad5c5 Add reference. 2026-04-15 00:07:09 +02:00
tomFlowee 2d0f94340f fix signed/unsigned comparisons. 2026-04-12 13:52:45 +02:00
tomFlowee d8b0af0f8e Add way to quickly set up the new log channel. 2026-04-12 00:47:42 +02:00
tomFlowee 12016f316f Cleanup confusing code. 2026-04-12 00:47:09 +02:00
tomFlowee 38c2e9672e Update comments and log messages. 2026-04-11 23:39:20 +02:00
tomFlowee d806b09729 Needs a max too. 2026-04-11 19:00:23 +02:00
tomFlowee 9103051683 Minor logging updates. 2026-04-11 14:38:33 +02:00
tomFlowee 8c28e349b9 Tweak in the numbers. 2026-04-11 14:38:11 +02:00
tomFlowee 363153e9df Support logging line numbers and file/method names. 2026-04-11 00:26:48 +02:00
tomFlowee ef96b62937 Add calling thread ID to the log output. 2026-04-10 23:53:01 +02:00
tomFlowee df4e1de6fd Add new log channel FastLogChannel
This log channel copies the log line and instantly returns to allow the
main codebase to not have an impact on logging speed.

Normal usage this isn't really relevant, but for cases where we want a
massive amount of logging for performance tuning the logging ends up
being a bottle-neck. Well, not logging but the output channel ends up
being a IO based bottleneck.
This log channel moves the IO based work to its own thread in order
to ensure that the main code works at full speed.
2026-04-10 23:30:57 +02:00
tomFlowee f44007d86d Add bool on engine: do SPV level validation only
This helps unit tests.
2026-04-09 23:15:08 +02:00
tomFlowee 29069b5aa3 Fix error in tests. 2026-04-09 20:01:58 +02:00
tomFlowee 465aa8630d Move away from deprecated deadline_timer. 2026-04-09 19:25:27 +02:00
tomFlowee fdd9274156 Add bytesToHex helper method 2026-03-04 17:58:05 +01:00
tomFlowee 23e2441f66 Move to new release version 2026.02.0 2026-02-13 20:56:16 +01:00
tomFlowee efa6c05e1a A API review of CashAddr.h
This removes from the header all private methods, adds API docs and does
some renames that make code using this API much more readable.
2026-02-09 15:28:04 +01:00
tomFlowee 25eb649ac8 Start finding peers more agressively after time
Try to be closer to what the SPV action does, after calmly starting we
agressively get more new peers every cycle to compensate for the problem
that our addresses database may have lots of outdated data.
2026-02-05 13:35:42 +01:00
tomFlowee 1b7726ef8e Notice that the http client requires a newer boost 2026-01-14 20:08:31 +01:00
tomFlowee c223df12b7 Remove dead code. 2026.01.0 2026-01-14 18:25:44 +01:00