Commit graph

298 commits

Author SHA1 Message Date
Nodari Chkuaselidze
618ead29b9
pkg: update dependencies and npmignore. 2025-07-03 16:49:42 +04:00
Nodari Chkuaselidze
071fe80b01
mempool: drop airdrop proofs before activation and no longer accept in the mempool. 2025-06-20 12:04:27 +04:00
Nodari Chkuaselidze
b0af775af1
mempool: id is no longer part of airdrops. 2025-06-18 15:16:10 +04:00
Nodari Chkuaselidze
3f83d575ee
chain: rename constants and update types. 2025-02-06 14:35:37 +04:00
Nodari Chkuaselidze
0ce319765a
types: update mempool entries and simple mining. 2024-10-01 20:47:24 +04:00
Nodari Chkuaselidze
0f4767f1b6
covenant: set methods on covenant. 2023-10-20 12:50:38 +04:00
Nodari Chkuaselidze
1cc63b5dda
pkg: update bdb to 1.5.1 and use @handshake-org/bfilter. 2023-09-27 13:12:06 +04:00
Nodari Chkuaselidze
6af9cba776
mempool: more invalidation tests. 2023-07-14 16:17:56 +04:00
Nodari Chkuaselidze
4672db4689
mempool: fix invalidate hardened param. 2023-06-07 15:21:45 +04:00
Nodari Chkuaselidze
bb393c109f
doc: fix nameFlags type doc. 2023-06-06 17:08:42 +04:00
Nodari Chkuaselidze
e691665d7a
chain: use flags for the name deployments. 2023-05-31 20:39:14 +04:00
Nodari Chkuaselidze
f857df5eed
test: add reorg test to the mempool claim invalidation. 2023-05-29 14:16:17 +04:00
Nodari Chkuaselidze
7f0357b5cf
mempool: invalidate claims when the claim period ends. 2023-05-24 21:27:43 +04:00
Matthew Zipkin
0a586d28cb
mempool: minor 2023-01-06 15:33:02 -05:00
Matthew Zipkin
77d9191514
mempool: only evict name-linked TXs after reorg re-insertion 2023-01-06 15:11:16 -05:00
Matthew Zipkin
a1d08c89b4
mempool: handle orphans on new block even if mempool is empty 2023-01-05 13:34:01 -05:00
Matthew Zipkin
8b8a7d84f4
mempool: add/fix comments 2023-01-05 13:30:49 -05:00
Matthew Zipkin
ae6d510287
mempool: evict linked covenants in correct order during reorg 2023-01-05 13:30:44 -05:00
Matthew Zipkin
5489e31d9c
policy: make absurd fee rate (factor) configurable 2022-11-29 09:49:22 -05:00
Mark Tyneway
8cecb6b6af
mempool: reflect spent coins in mempool coinview
Currently coinview does not account for spent coins in the mempool,
This does not create problems because we have additional checks in
right places which detect double spends, but technically
coinview should help you detect double spent in the mempool as well.
This way it will be compatible with chain.getCoinView.

getSpentView will still return all outputs that are available
in the mempool. (This could also return spentView from indexers if
available, this method is used by `signrawtransaction`.)

Port of bcoin commit: 32cba1bf4aa293bcf49c1849587dc1482ce98050
32cba1bf4a

Co-authored-by: Nodar Chkuaselidze <nodar.chkuaselidze@gmail.com>
Co-authored-by: Mark Tyneway <mark@purse.io>
2021-12-09 17:26:07 +04:00
Christopher Jeffrey
0603531e70
consensus: fix inflation bug pertaining to replacement name claims.
See https://handshake.org/notice/2020-04-02-Inflation-Bug-Disclosure.html
2021-04-02 10:44:06 -07:00
Matthew Zipkin
9355cc8c2d
mempool: evict expired transactions regardless of mempool size 2021-01-12 10:37:15 -05:00
Anthony Liu
b290447e4a
mempool: fix 'aidrop' -> 'airdrop' typos 2020-02-19 00:49:27 -08:00
Christopher Jeffrey (JJ)
f30b284d38
Merge pull request #319 from pinheadmz/mempool1
Improve re-insertion of TXs from disconnected blocks into mempool
2020-01-31 05:41:30 -08:00
Christopher Jeffrey
609af67780
consensus: switch to ksk2017. 2020-01-31 05:16:20 -08:00
Boyma
673b71ebf7
Merge pull request #330 from pinheadmz/txstart1
[consensus] No transactions for the first two weeks
2020-01-26 00:40:25 -08:00
Mark Tyneway
a95a8f4d85
mempool: do not ban peers for relaying after goostop 2020-01-25 20:32:04 -08:00
Mark Tyneway
9c092c097e
consensus: disable goosig after 1 year + 1 month 2020-01-24 18:32:45 -08:00
Matthew Zipkin
f600a754cb
txstart: fix off-by-one 2020-01-24 14:53:17 -05:00
Matthew Zipkin
47e29dbaa6
consensus: enforce starting height for all transactions 2020-01-24 14:53:16 -05:00
Matthew Zipkin
fb88597315
mempool: handleReorg checks block commitment in Claims 2020-01-02 10:09:47 -05:00
Matthew Zipkin
efe7405a97
mempool: reinsert claims and airdrops after reorg 2020-01-02 09:02:40 -05:00
Matthew Zipkin
9445caa605
mempool: contextual check sequence lock spends during _handleReorg 2019-12-22 14:49:22 -05:00
Matthew Zipkin
fb1b96b7d5
mempool: do contextual checks on coinbase spends during _handleReorg
This method used to just toss out any TX that might be problematic
when the chain is rewound. Instead, we can actually check the context
of each TX and allow them to remain in the mempool if they are still
valid. Those checks include coinbase maturity and sequence locks.
2019-12-22 14:49:22 -05:00
Matthew Zipkin
b663aee49d
mempool: remove block even if mempool is empty 2019-12-22 14:49:17 -05:00
Mark Tyneway
8ad20c7118 mempool: remove premature witness option 2019-04-08 16:07:39 -07:00
Christopher Jeffrey
35eecbe425
mempool: stop mining invalid blocks due to duplicate airdrop proofs. 2019-04-01 06:25:41 -07:00
Christopher Jeffrey
9762b29922
covenants: implement mass name revocation safeguards. see #103.
This commit accomplishes a few things:

- The emergency soft-fork safe guards and on-chain mitigations described in
  #103 are implemented.
- Claimed names no longer expire within the reservation window, but are still
  revokable.
- We now track the registered and expired state of a name.
- In addition to the above, we track the total number of renewals.
- We no longer clear name data on expiration.
2019-04-01 06:25:40 -07:00
Christopher Jeffrey
823824a579
mempool: evict expired states correctly. 2019-01-28 12:05:26 -08:00
Christopher Jeffrey
91f392ce26
airdrop: fix airdrop proof relaying. 2019-01-21 22:06:30 -08:00
Christopher Jeffrey
9716f8f734
mempool: clear airdrop index. 2018-12-02 16:07:00 -08:00
Christopher Jeffrey
daf38ea4dd
airdrop: first attempt at airdrop proofs. 2018-12-02 15:56:50 -08:00
Christopher Jeffrey
ce8d405db3
bdb: update to use new key serialization. 2018-08-10 06:13:23 -07:00
Christopher Jeffrey
2662ebfa25
mempool: clear name state in reset call. 2018-08-03 06:55:12 -07:00
Christopher Jeffrey
7c294f652e
mempool: untrack txs properly. 2018-08-02 00:38:11 -07:00
Christopher Jeffrey
a03fcd1a23
pkg: rename to hsd. 2018-08-01 20:00:09 -07:00
Christopher Jeffrey
75e58b052e
covenant: start moving methods onto the covenant object. 2018-08-01 17:55:37 -07:00
Christopher Jeffrey
6920520f6c
names: better dos limits. 2018-08-01 04:40:59 -07:00
Christopher Jeffrey
f8db47e87a
covenants: rename some stuff. 2018-07-31 20:05:38 -07:00
Christopher Jeffrey
b8fb76e813
covenants: rename auction to namestate. 2018-07-31 19:54:40 -07:00