Commit graph

58 commits

Author SHA1 Message Date
Mononaut
30d58d9971
Restore GBT result size sanity check 2024-01-09 17:08:25 +00:00
Mononaut
89d37f0058
Fix unmineable tx handling 2024-01-09 16:26:05 +00:00
Mononaut
d665d2a12c
Handle unmineable transactions in GBT implementations 2024-01-06 04:20:19 +00:00
junderw
b595002c25
Revert "Add a missing [workspace] tag in rust-gbt Cargo to build in git"
This reverts commit fadc46f3b5.
2023-08-21 10:01:40 -07:00
Matt Corallo
6088fffc09 Drop MSRV to 1.63
Debian bookworm ships with 1.63, and since the change is trivial,
there's little reason to not support people running mempool on
Debian.
2023-08-21 04:03:37 +00:00
Matt Corallo
fadc46f3b5 Add a missing [workspace] tag in rust-gbt Cargo to build in git
If cargo detects its being run in a git tree, it looks for a
top-level `Cargo.toml`. When failing to find one, it errors out,
saying "current package believes it's in a workspace when it's not."

Instead, we add a `[workspace]` tag to let cargo know that rust-gbt
is not, in fact, in a rust workspace.
2023-08-21 04:00:52 +00:00
Mononaut
928a8be846
fix pool-dependent accelerated audit handling 2023-07-26 15:08:34 +09:00
Mononaut
7c641544b2
check in missing rust-gbt file 2023-07-26 15:08:34 +09:00
Mononaut
ffc2b6c53c
Add acceleration support to rust gbt 2023-07-26 15:08:34 +09:00
wiz
23151ec3db
Bump version to 3.0.0-dev
- Now requires mempool/electrs
- Mempool Accelerator integration
- Rust GBT integration
- And more!
2023-07-14 18:39:35 +09:00
junderw
925ebf08d4
Fix Docker build for using napi-rs 2023-07-06 18:05:21 -07:00
junderw
eae5f6078e
Move N-API CLI to dependencies 2023-07-06 15:49:54 -07:00
Jonathan Underwood
464587cec5
Add period 2023-07-05 19:35:36 -07:00
junderw
390c4a7706
Use ManuallyDrop 2023-07-04 17:19:41 -07:00
Mononaut
8fdc44aa89
replace audit_pool hashmap with a vec 2023-07-03 22:16:35 -04:00
Mononaut
cfa2363743
only return rates changed since last update 2023-07-03 12:01:49 -04:00
Mononaut
897c667f17
return sigop-adjusted effective fee rates 2023-07-03 12:01:06 -04:00
Mononaut
078bc1d914
fix and consolidate tx ordering logic 2023-07-03 11:57:12 -04:00
Mononaut
23d487b904
Mimic Core's ordering for equal-score transactions 2023-07-03 10:28:32 -04:00
junderw
0ddfa94b59
Ran cargo fmt 2023-07-03 10:18:22 -04:00
Mononaut
ccbed8ec58
Use min(feerate,ancestor_feerate) for ancestor score 2023-07-03 10:18:22 -04:00
junderw
552818607a
Better initial capacity 2023-07-03 10:18:22 -04:00
Mononaut
0886e850f9
Pass gbt mempool data directly without serialization 2023-07-03 10:18:21 -04:00
Mononaut
5065fa42d0
calculate total block weights inside rust gbt 2023-07-03 10:18:21 -04:00
junderw
2838b068f7
Increased performance 2023-07-03 10:18:21 -04:00
Mononaut
79a10ee833
vsize -> sigop_adjusted_vsize 2023-07-03 10:18:21 -04:00
Mononaut
10beb76585
conform to core's gbt quirks 2023-07-03 10:18:21 -04:00
junderw
6650541b2d
Added Logging and refactored a bit 2023-07-03 10:18:20 -04:00
Mononaut
702c4c123e
remove unnecessary option wrapper from gbt return value 2023-07-03 10:18:20 -04:00
Mononaut
1688b7d24e
fix handling of used txs at top of mempool stack 2023-07-03 10:18:20 -04:00
Mononaut
75fd4ff5e1
swap mempool_array deque for a mempool_stack vec 2023-07-03 10:18:20 -04:00
Mononaut
ac8f88da38
protect ancestor data from outside assignments 2023-07-03 10:18:20 -04:00
Mononaut
7873f1c26a
fix rust gbt cpfp cluster construction 2023-07-03 10:18:20 -04:00
Mononaut
a66c0c88ce
fix rust gbt priority queue handling 2023-07-03 10:18:20 -04:00
junderw
4334b9eac1
Fix README and publish = false in Cargo.toml 2023-07-03 10:18:19 -04:00
junderw
5d48ae1eec
Use U32HasherState for HashSet 2023-07-03 10:18:19 -04:00
junderw
1ed0f86ed9
calc_new_score can be private 2023-07-03 10:18:18 -04:00
junderw
609df31e0c
Fix clippy pedantic and nursery lints as well 2023-07-03 10:18:18 -04:00
junderw
e61ae59e53
Add safety comments 2023-07-03 10:18:18 -04:00
junderw
e3f4c33f03
Protect score from outside assignment and document the requirements 2023-07-03 10:18:17 -04:00
junderw
af4919a98b
Use u32hasher with PriorityQueue as well 2023-07-03 10:18:17 -04:00
junderw
939d2230d2
Use bytemuck instead of unsafe Rust 2023-07-03 10:18:17 -04:00
junderw
59b19eefe3
Move u32hasher into its own module, don't expose the Hasher for use. 2023-07-03 10:18:17 -04:00
junderw
3c652bdcbc
Optimize audit_pool key hashing as well. Use a const for starting capacity for tx related lists. 2023-07-03 10:18:17 -04:00
junderw
ded2352cf8
Use a class to hold state for Rust GbtGenerator 2023-07-03 10:18:17 -04:00
junderw
8cfda1a546
Use tokio async/await instead of callbacks 2023-07-03 10:18:17 -04:00
junderw
5f161e73c7
Check callback status in thread 2023-07-03 10:18:16 -04:00
junderw
dfe24ed9d7
Remove all unwrap() calls 2023-07-03 10:18:16 -04:00
junderw
4661bea2f0
Use N-API ThreadsafeFunction 2023-07-03 10:18:16 -04:00
junderw
2d4963c2df
Feature: Use napi-rs instead of neon 2023-07-03 10:18:16 -04:00