Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.4.0.1.0 RC1 #4262

Merged
merged 898 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
898 commits
Select commit Hold shift + click to select a range
36b91c9
refactor: put get-neighbors RPC handler into its own file
jcnelson Oct 2, 2023
1c5b0e4
refactor: put get-pox-info RPC handler into its own file
jcnelson Oct 2, 2023
490866e
refactor: put get-stackerdb-chunk RPC handler into its own file
jcnelson Oct 2, 2023
90242db
refactor: put get-stackerdb-metadata RPC handler into its own file
jcnelson Oct 2, 2023
863901d
refactor: put get-stx-transfer-cost RPC handler into its own file
jcnelson Oct 2, 2023
74ae694
refactor: put get-transaction-unconfirmed RPC handler into its own file
jcnelson Oct 2, 2023
3a7f82a
refactor: put post-blcok RPC handler into its own file
jcnelson Oct 2, 2023
213f141
refactor: put fee-rate estimator RPC handler into its own file
jcnelson Oct 2, 2023
6d3604b
refactor: put mempool query RPC handler into its own file
jcnelson Oct 2, 2023
2a8ee3d
refactor: put post-microblock RPC handler into its own file
jcnelson Oct 2, 2023
c8682f7
refactor: put post-stackerdb-chunk RPC handler into its own file
jcnelson Oct 2, 2023
e0a0857
refactor: put post-transaction RPC handler into its own file
jcnelson Oct 2, 2023
63ab815
refactor: put _all_ RPC handlers into their own files, and refactor t…
jcnelson Oct 2, 2023
66902de
remove stacks-sbtc dependency; use wsts net and state_machine mods in…
xoloki Sep 28, 2023
3fde24d
remove unnecessary crypto module since all that code has been moved i…
xoloki Sep 28, 2023
a131d64
fix signer test deps
xoloki Sep 28, 2023
57c08bd
test signing with and without taproot
xoloki Sep 29, 2023
851217d
update stacks-signer and tests to use generic wsts state machines
xoloki Sep 29, 2023
10c82b4
switch to wsts v2; run signer integration test full scale with 4000 keys
xoloki Oct 3, 2023
3b86dc4
Merge pull request #3984 from stacks-network/chore/remove-stacks-sbtc
jcnelson Oct 3, 2023
44c764c
update wsts to include tracing logs; subscribe to tracing logs using …
xoloki Oct 3, 2023
03be8c7
Merge branch 'develop' into feat/http-rpc-refactor
jcnelson Oct 3, 2023
6ccfd11
Merge branch 'develop' into feat/http-rpc-refactor
jcnelson Oct 3, 2023
7fe72fc
fix: set higher default execution cost so callreadonly test passes
jcnelson Oct 4, 2023
bc1992c
Merge branch 'feat/http-rpc-refactor' of https://github.com/stacks-ne…
jcnelson Oct 4, 2023
5775c38
chore: remove sha256d
jcnelson Oct 4, 2023
c627eed
fix: "pages_indexes" is correct
jcnelson Oct 4, 2023
d7f2a30
disable failing apt-get call that pulls in a bunch of weird stuff
xoloki Oct 4, 2023
20bb540
it's a remove not an install so just get rid of the thing that isn't …
xoloki Oct 4, 2023
ca9f84b
Merge pull request #3986 from stacks-network/chore/enable-signer-tracing
jcnelson Oct 4, 2023
f26de63
Merge branch 'develop' into feat/http-rpc-refactor
jcnelson Oct 4, 2023
cdeb631
chore: fix regression in NetworkReplyHandle<P: ProtocolFamily>::try_f…
jcnelson Oct 4, 2023
8e880e7
fix: count the number of txs sent
jcnelson Oct 5, 2023
5b3edef
refactor: remove unneeded function args
jcnelson Oct 5, 2023
1177e64
refactor: remove unneeded function args
jcnelson Oct 5, 2023
8eb1e98
feat: allow connection opts to set the send/recv socket buffer size (…
jcnelson Oct 5, 2023
50f9715
refactor: remove unneeded function args
jcnelson Oct 5, 2023
d3fd9b1
refactor: remove unneeded function args
jcnelson Oct 5, 2023
4c3e6e9
chore: remove unneeded function args
jcnelson Oct 5, 2023
4a550bd
feat: when connecting to an address, allow the caller to set the sock…
jcnelson Oct 5, 2023
c87c59d
fix: ensure that the reply handle's inner PipeWrite has at least $SOC…
jcnelson Oct 5, 2023
b3a8b45
refactor: remove unneeded function args
jcnelson Oct 5, 2023
1c3c28d
chore: API sync
jcnelson Oct 5, 2023
062bb2d
feat: PipeWrite can return the number of bytes pending
jcnelson Oct 5, 2023
80398da
Merge branch 'feat/http-rpc-refactor' of https://github.com/stacks-ne…
jcnelson Oct 5, 2023
9919e10
fix: failure to find a request route is a 404, not a 400
jcnelson Oct 5, 2023
946694f
updating startup scripts
wileyj Aug 23, 2023
dedb06a
address PR comments
wileyj Aug 24, 2023
5a41eaa
Merge branch 'develop' into feat/http-rpc-refactor
jcnelson Oct 6, 2023
2793581
Merge branch 'develop' into fix/profile-sqlite
jcnelson Oct 9, 2023
e875686
Update wsts and p256k1 libs in stacks-signer
jferrant Oct 9, 2023
3f7b1c2
Fix integration test dependencies
jferrant Oct 9, 2023
4202b67
Merge pull request #3997 from stacks-network/chore/stacks-signer-upda…
xoloki Oct 9, 2023
00f10e7
chore: Add `imports_granularity=Module` to `rustfmt` config
jbencin Sep 30, 2023
f6668d8
chore: Apply new `rustfmt` config from parent commit to all files
jbencin Oct 10, 2023
fb2309f
Merge pull request #3907 from stacks-network/chore/cargo-fmt-imports
jbencin Oct 10, 2023
5f6c842
wip: dkg contract interactions
soju-drinker Oct 5, 2023
fd4c48d
make
soju-drinker Oct 6, 2023
b3a412f
Add tests to call read only function and fix relative url
jferrant Oct 9, 2023
e6b47ac
Fix naming of tests
jferrant Oct 9, 2023
59b1a2d
inlining http on http origin
soju-drinker Oct 10, 2023
a8bdeeb
changing function arg types and removing panics
soju-drinker Oct 10, 2023
0dd83c7
Add 404 and 400 error tests and check if status code is success other…
jferrant Oct 10, 2023
c9b6528
Add TransactionVersion from Network conversion in config
jferrant Oct 10, 2023
b6578ac
Merge pull request #3989 from stacks-network/feat/dkg-contract-intera…
xoloki Oct 12, 2023
0e2df99
Address clippy complaints in src/address/
jferrant Sep 19, 2023
457e1cc
Address clippy complaints in src/codec/
jferrant Sep 19, 2023
2a8ef35
Address clippy complaints in src/deps_common/bech32
jferrant Sep 19, 2023
a3d842e
Address clippy complaints in src/deps_common/bitcoin/blockdata
jferrant Sep 19, 2023
cdbf9bb
Address clippy complaints in src/deps_common/bitcoin/network
jferrant Sep 19, 2023
1aaf4ea
Address clippy complaints in src/deps_common/bitcoin/util
jferrant Sep 19, 2023
e2db155
Address clippy complaints in src/types/
jferrant Sep 19, 2023
07daa48
Address clippy complaints in src/util/
jferrant Sep 19, 2023
e45ddd8
Address clippy complaints in deps_common
jferrant Oct 2, 2023
2b749e1
CRC: revert write_all change, allow needless_range_loop, and update e…
jferrant Oct 3, 2023
b4ed5f2
Revert VRF changes in case there are performance impacts and add clip…
jferrant Oct 4, 2023
55b06c2
CRC: revert panic!(MESSAGE) to assert!(false, MESSAGE) and silence wa…
jferrant Oct 6, 2023
a1ef904
Merge pull request #3947 from stacks-network/chore/stacks-common-fix-…
xoloki Oct 13, 2023
1ecfc3b
Create SECURITY.md
Jun 7, 2023
1a076bf
Formatting an added some additional data based on how others use this…
wileyj Jun 9, 2023
c5ab5c5
update language in doc
wileyj Jun 14, 2023
fd0cdc3
Address clippy complaints in pox-locking repo
jferrant Sep 19, 2023
5be4534
CRC: revert needless return changes for clarity
jferrant Oct 3, 2023
e5d529c
reclaim disk space before full genesis integration test
xoloki Oct 16, 2023
959a6e6
Merge pull request #3950 from stacks-network/chore/pox-locking-fix-cl…
xoloki Oct 16, 2023
b848aa5
Fix bug in spawn_running_signer which was incorrectly using node rath…
jferrant Sep 22, 2023
6f59546
Do not unwrap the result as it should be a none
jferrant Sep 22, 2023
4ee0698
Fix CLI data to be just a String as clap does not like Vec's and inte…
jferrant Sep 22, 2023
7bf0c48
Add mocknet option to network for clarity/completeness
jferrant Oct 4, 2023
8ed235e
CRC: remove busy loop and implement join handle function for libsigne…
jferrant Oct 4, 2023
2b3a9ff
Decode provided data as b58
jferrant Oct 4, 2023
5645a0b
work around clap being very very dumb
xoloki Oct 4, 2023
e01a834
Add comment to explain weird use of alloc::vec
jferrant Oct 6, 2023
ea374a0
Fix rebase issues
jferrant Oct 16, 2023
5ac03fc
Merge pull request #3982 from stacks-network/chore/test-dkg-stacker-db
xoloki Oct 16, 2023
dba2277
wip: dkg contract interactions
soju-drinker Oct 5, 2023
4cb14bd
make
soju-drinker Oct 6, 2023
7c6ecbf
Add tests to call read only function and fix relative url
jferrant Oct 9, 2023
a85b84f
WIP: add todo functions for interacting with a contract to trigger DKG
jferrant Oct 4, 2023
0185a3d
Add call to get pox contract id from stacks node
jferrant Oct 9, 2023
f8ddb2f
Parse aggregate public key from clarity contract and add test
jferrant Oct 9, 2023
cf3619f
Fix rebase issues
jferrant Oct 10, 2023
e367cab
Fix parsing of bitcoin wallet to be a full Point rather than an xonly…
jferrant Oct 10, 2023
545f0a1
WIP: Broken commit. Issues with converting pox contract id into a Qua…
jferrant Oct 11, 2023
d393002
WIP: Broken commit. Adding scaffolding for cast_aggregate_public_key_…
jferrant Oct 11, 2023
c286e47
Add cast aggregate vote and get current reward cycle from pox
jferrant Oct 11, 2023
fa9948d
Cleanup some functions
jferrant Oct 11, 2023
7d0f653
Add another error case to reward cycle tests
jferrant Oct 11, 2023
8d62f80
Need to add get_nonce and simulate its response in ignored transactio…
jferrant Oct 11, 2023
1c5fcca
WIP: broken integration tests due to getting aggregate public key. Ad…
jferrant Oct 11, 2023
d9fb56d
Fix broken parsing due to trailing quotes in pox contract
jferrant Oct 12, 2023
aea9eb8
Add pox contract ID option to config to overwrite node result
jferrant Oct 12, 2023
96e8dcc
WIP: Need to fix state for contacting node
jferrant Oct 13, 2023
260473d
WIP: Still unable to run should_run_dkg without hanging
jferrant Oct 16, 2023
365c5a9
WIP: no longer hanging, needs cleanup
jferrant Oct 17, 2023
1ebb417
WIP: cleanup and add cast_vote helper fn
jferrant Oct 17, 2023
cee0eea
Cleanup unnecessary errors, functions, and add retry backoff to aggre…
jferrant Oct 18, 2023
0014d1e
Clippy cleanup of signer.rs
jferrant Oct 18, 2023
a6af378
Merge branch 'develop' into feat/http-rpc-refactor
jcnelson Oct 21, 2023
915ac56
fix: use .request_path()
jcnelson Oct 21, 2023
33114c1
fix: revert localized cargo.toml changes
jcnelson Oct 21, 2023
f346067
chore: replace `.len() == 0` with `.is_empty()`
jcnelson Oct 21, 2023
eaa8de9
chore: run DKG test as part of integration test
jcnelson Oct 26, 2023
a3f6cca
fix: forward stackerdb chunks to relayer
jcnelson Oct 26, 2023
dcfba38
chore: address PR feedback
jcnelson Oct 26, 2023
6d22cc6
chore: add InvalidState error variant instead of unreachable!()
jcnelson Oct 26, 2023
5ff0b21
fix: use 100 signers and 4000 keys. This test runs only on release CI…
jcnelson Oct 26, 2023
2be0b03
CRC: make backoff values into const vars and add github issues for TODOs
jferrant Oct 26, 2023
2ba5647
Address bug in parse_aggregate_public_key by verifying data len is 32
jferrant Oct 27, 2023
e640990
Merge pull request #3988 from stacks-network/feature/retrieve-set-dkg
xoloki Oct 30, 2023
167a8a7
Merge branch 'develop' into feat/http-rpc-refactor
jcnelson Nov 1, 2023
3b37332
chore: make fmt
jcnelson Nov 1, 2023
9668fb1
Merge pull request #3987 from stacks-network/feat/http-rpc-refactor
jcnelson Nov 1, 2023
5e06549
chore: fix clippy warnings in clarity
obycode Nov 1, 2023
13c33d6
chore: fix clippy issues in stacks-common
obycode Nov 1, 2023
febb45f
ci: enable clippy when opening PRs to develop
obycode Nov 1, 2023
3bde2bc
chore: fix new clippy warnings
obycode Nov 1, 2023
c273532
ci: revert changes in ci.yml
obycode Nov 1, 2023
e939a5b
ci: re-enable the clippy job
obycode Nov 1, 2023
b837de5
ci: run clippy on PR "synchronize"" events
obycode Nov 1, 2023
43dfe67
chore: fix new clippy warning in stacks-common
obycode Nov 1, 2023
6315b17
chore: fix more clippy errors
obycode Nov 1, 2023
6f04ad8
Merge pull request #4026 from stacks-network/ci/enable-clippy
obycode Nov 2, 2023
00d5a36
tests: migrate core contracts test to clarinet-sdk
hugocaillard Nov 3, 2023
d67c910
ci: fix core contracts test
hugocaillard Nov 8, 2023
eeea899
docs: typo in comment
hugocaillard Nov 9, 2023
e6d2342
docs: typo in comments
hugocaillard Nov 9, 2023
2e7418f
Merge pull request #4031 from hugocaillard/test/migrate-to-sdk
obycode Nov 10, 2023
3757709
reload from config for up to date satoshis_per_byte
tippenein Nov 15, 2023
476c74c
use less obstructive __path accessor
tippenein Nov 15, 2023
6b3cbc4
fix some move errors and __path
tippenein Nov 15, 2023
fc63538
add test
tippenein Nov 15, 2023
3659d20
fix test case
tippenein Nov 15, 2023
df1972f
chore: Remove `Makefile` and use Cargo alias for `cargo fmt` config i…
jbencin Nov 16, 2023
907f8cf
Merge branch 'develop' into satoshis-per-byte-current-4047
tippenein Nov 17, 2023
a6a75f2
update changelog
tippenein Nov 17, 2023
0929a8b
Merge pull request #4061 from tippenein/satoshis-per-byte-current-4047
jcnelson Nov 17, 2023
474cd78
Merge branch 'develop' into fix/profile-sqlite
jcnelson Nov 17, 2023
3b4888d
use hashset for event_observers
tippenein Nov 19, 2023
ef4c6bc
update stackerdb tests
tippenein Nov 19, 2023
f6d59f8
Merge pull request #3854 from bestmike007/fix/profile-sqlite
jcnelson Nov 19, 2023
7e53a31
Merge branch 'develop' into fix-duplicate-events-2810
tippenein Nov 19, 2023
7b00a1f
feat: side-car to watch and report estimated sats/vbyte
jcnelson Nov 20, 2023
29e31cd
chore: more usage docs
jcnelson Nov 20, 2023
0224b1a
chore: address PR feedback -- log HTTP errors and check that the conf…
jcnelson Nov 20, 2023
3699566
Merge pull request #4077 from stacks-network/feat/fee-estimate-side-car
saralab Nov 21, 2023
e585d25
Add sidecar scripts for fee estimation and stacks block delay detection
AshtonStephens Nov 21, 2023
347c1cf
Improve error description of `ft-mint?`
friedger Oct 30, 2023
b0f637f
Merge branch 'develop' into chore/fix-warnings
obycode Nov 22, 2023
e1c2e9b
Merge pull request #3852 from bestmike007/chore/fix-warnings
obycode Nov 22, 2023
ca523fb
fix: Address warning messages and errors in `cargo build` and `cargo …
jbencin Nov 22, 2023
c871c05
Merge branch 'develop' into sidecar-scripts
jcnelson Nov 22, 2023
2d55dc9
Merge branch 'develop' into fix-duplicate-events-2810
tippenein Nov 22, 2023
fc61021
mass replace .push with .insert
tippenein Nov 23, 2023
33c64f6
Merge pull request #4076 from tippenein/fix-duplicate-events-2810
saralab Nov 28, 2023
34fe70a
Merge branch 'develop' into sidecar-scripts
wileyj Nov 28, 2023
a25703d
Merge pull request #4080 from stacks-network/sidecar-scripts
jcnelson Nov 28, 2023
6bfb9bc
updating invalid FQDNs to stacks.org
wileyj Nov 3, 2023
d18fd97
Merge branch 'master' into merge-develop
wileyj Dec 4, 2023
609005f
revert logging commit (pr 4124)
wileyj Dec 5, 2023
9e9478f
Revert "revert logging commit (pr 4124)"
wileyj Dec 5, 2023
4ee724e
Merge pull request #4124 from stacks-network/merge-develop
wileyj Dec 5, 2023
85f32f7
Make tx fee a variable in stackerdb dkg test and increase it
jferrant Dec 7, 2023
301243b
reduce number of signers and keys so test doesn't consume all availab…
xoloki Dec 7, 2023
ce5faa3
fix: RPC endpoints should default to proof=1
kantai Dec 8, 2023
1f5cc3f
Merge pull request #4139 from stacks-network/fix/proof-defaults
wileyj Dec 8, 2023
67e4f30
test: fix httpcore test for defaulting in proof query string
kantai Dec 8, 2023
ad493ad
Merge pull request #4140 from stacks-network/fix/test-httpcor
kantai Dec 11, 2023
1fbfa9a
fix: set maxburncap to 1BTC in sendrawtransaction (new in Bitcoin 25.0)
kantai Dec 9, 2023
7b04730
use bitcoin 25.0 for tests
wileyj Dec 8, 2023
38a14a9
set test_stackerdb_dkg to ignore
xoloki Dec 11, 2023
a064672
Merge branch 'develop' into bugfix/stackerdb-dkg-test
wileyj Dec 11, 2023
a6741ce
Merge pull request #4142 from stacks-network/feat/set-maxburn-sendrawtx
wileyj Dec 11, 2023
d1f834d
Merge branch 'develop' into bugfix/stackerdb-dkg-test
wileyj Dec 11, 2023
a7e9237
Merge pull request #4136 from stacks-network/bugfix/stackerdb-dkg-test
wileyj Dec 11, 2023
2c501b7
Merge branch 'develop' into ci/fix-develop-tests
wileyj Dec 11, 2023
ad88424
Merge pull request #4141 from stacks-network/ci/fix-develop-tests
wileyj Dec 11, 2023
e406a97
use pull_request to trigger ci runs
wileyj Dec 12, 2023
9fe5950
Merge pull request #4161 from stacks-network/ci/fix-pr-target
wileyj Dec 12, 2023
816d69c
fix: minor bug in fee-estimate.py
obycode Jan 1, 2024
2d7f9ed
chore: set confidence parameter to 0.9 for bitcoiner.live API
obycode Jan 2, 2024
8a075a0
Merge pull request #4224 from stacks-network/fix/fee-estimate
obycode Jan 4, 2024
23ef4ce
chore: update default testnet hiro bootstrap node
CharlieC3 Jan 9, 2024
e6dac0a
Merge pull request #4237 from CharlieC3/develop
wileyj Jan 16, 2024
5801992
Merge master to develop
jcnelson Jan 17, 2024
9012cf7
chore: cargo fmt-stacks
jcnelson Jan 17, 2024
4b6638a
Merge pull request #4251 from stacks-network/feat/merge-master-to-dev…
jcnelson Jan 17, 2024
4389499
chore: cargo fmt
jcnelson Jan 18, 2024
b6be517
chore: cargo fmt
jcnelson Jan 18, 2024
8508c38
Revert "Address clippy complaints in src/vm/"
jcnelson Jan 18, 2024
18d0d15
Merge branch 'fix/develop-revert-clippy' into feat/cargo-fmt
jcnelson Jan 18, 2024
598d4bf
chore: merge change log
jcnelson Jan 18, 2024
d99bc2f
change --config= to --config
wileyj Jan 18, 2024
a7cf645
chore: cargo fmt
jcnelson Jan 18, 2024
e42195e
chore: a few fixes to neighbor lifecycle to make the node less chatty
jcnelson Jan 18, 2024
3907d7e
chore: move repetative info! to debug!
jcnelson Jan 19, 2024
43c91b2
feat: optionally ignore neighbors on private networks
jcnelson Jan 19, 2024
71355c5
fix: expose private_neighbors via config.rs
jcnelson Jan 20, 2024
ff7c549
feat: add /v2/stackerdb/{contract-addr}/{contract-name}/replicas API …
jcnelson Jan 22, 2024
44b6aa7
chore: don't connect to unroutable neighbors if private_neighbors is …
jcnelson Jan 22, 2024
c32ad7a
chore: debug, not info
jcnelson Jan 22, 2024
806de84
fix: repair connection network handle flush logic, and add a helper t…
jcnelson Jan 22, 2024
210c746
fix: update local peer to indicate that we support stackerdb
jcnelson Jan 22, 2024
69bdbe8
chore: cargo fmt
jcnelson Jan 22, 2024
3c65785
chore: get stackerdb tests passing again; fix a couple bugs in the st…
jcnelson Jan 23, 2024
f747b00
Merge pull request #4270 from stacks-network/chore/stackerdb-replica-…
jcnelson Jan 23, 2024
cfb1b6d
chore: throttle stackerdb sync to be at least one second
jcnelson Jan 23, 2024
7021752
Merge branch 'release/2.5.0.1.0' of https://github.com/stacks-network…
jcnelson Jan 23, 2024
c0355b2
fix: if we hit message EOF, then return so that the caller can refill…
jcnelson Jan 23, 2024
d0c111a
fix: if walk step times out, then error out
jcnelson Jan 23, 2024
653a116
fix: blocked condition is true regardless of internal buffer contents
jcnelson Jan 23, 2024
23acbf1
chore: reset stackerdb sync state on reset
jcnelson Jan 23, 2024
3c8ec8f
fix: don't buffer zero-length buffers; expand test coverage
jcnelson Jan 23, 2024
b289659
fix: don't partially-buffer p2p messages; send them all at once so if…
jcnelson Jan 24, 2024
b736aaa
fix: compile error
jcnelson Jan 24, 2024
ed24b97
fix: it's not a problem if we don't make any new requests for stacker…
jcnelson Jan 24, 2024
63a7548
chore: log specifically what messages get nacked in stackerdb replica…
jcnelson Jan 24, 2024
401edeb
chore: don't re-send getchunksinv messages
jcnelson Jan 24, 2024
dd2a8a2
chore: coalesce replicas by ipaddr
jcnelson Jan 25, 2024
e6ae325
fix: count always-allowed nodes by pubkey, not port (which can omit i…
jcnelson Jan 25, 2024
cc8f86d
fix: walk to always-allowed if we aren't connected to one yet
jcnelson Jan 25, 2024
b6ea099
fix: if we have private_neighbors = false, then don't bother selectin…
jcnelson Jan 25, 2024
5794ee8
fix: missing !
jcnelson Jan 25, 2024
7b7067b
fix: only return routable replicas, and include localpeer if needed
jcnelson Jan 26, 2024
683931c
feat: helper to get neighbor address of local peer, given its public …
jcnelson Jan 26, 2024
7b597c3
fix: don't stop an ongoing walk just because we don't yet have a conn…
jcnelson Jan 26, 2024
4c461c2
refactor: query old neighbors for stackerdbs if we dont' have new ones
jcnelson Jan 26, 2024
67d5711
chore: cargo fmt
jcnelson Jan 26, 2024
40ecd03
fix: ::1 and 127.0.0.0/8 are private range addresses
jcnelson Jan 26, 2024
a8be048
fix: fix failing unit test
jcnelson Jan 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/actions/bitcoin-int-tests/Dockerfile.atlas-test
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ COPY . .

RUN cargo test --no-run --workspace

RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-25.0-x86_64-linux-gnu.tar.gz

RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/
RUN ln -s /bitcoin-25.0/bin/bitcoind /bin/

ENV BITCOIND_TEST 1
WORKDIR /src/testnet/stacks-node
Expand Down
22 changes: 0 additions & 22 deletions .github/actions/bitcoin-int-tests/Dockerfile.code-cov

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ ENV RUSTFLAGS="-Cinstrument-coverage" \
RUN cargo test --no-run && \
cargo build

RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-25.0-x86_64-linux-gnu.tar.gz

RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/
RUN ln -s /bitcoin-25.0/bin/bitcoind /bin/

ENV BITCOIND_TEST 1
9 changes: 6 additions & 3 deletions .github/actions/bitcoin-int-tests/Dockerfile.large-genesis
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ WORKDIR /src

COPY . .

RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN apt-get update && apt-get install -y libclang-dev

RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-25.0-x86_64-linux-gnu.tar.gz

RUN ln -s /bitcoin-25.0/bin/bitcoind /bin/

RUN rustup component add llvm-tools-preview && \
rustup component add rustfmt && \
cargo install grcov

ENV RUSTFLAGS="-Cinstrument-coverage" \
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/bitcoin-int-tests/Dockerfile.net-tests
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ WORKDIR /src

COPY . .

RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-0.20.0-x86_64-linux-gnu.tar.gz
RUN cd / && wget https://bitcoin.org/bin/bitcoin-core-25.0/bitcoin-25.0-x86_64-linux-gnu.tar.gz
RUN cd / && tar -xvzf bitcoin-25.0-x86_64-linux-gnu.tar.gz

RUN ln -s /bitcoin-0.20.0/bin/bitcoind /bin/
RUN ln -s /bitcoin-0.20.0/bin/bitcoin-cli /bin/
RUN ln -s /bitcoin-25.0/bin/bitcoind /bin/
RUN ln -s /bitcoin-25.0/bin/bitcoin-cli /bin/

RUN apt-get update
RUN apt-get install -y jq screen net-tools ncat sqlite3 xxd openssl curl
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/dockerfiles/Dockerfile.debian-source
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ WORKDIR /src

COPY . .

RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y git libclang-dev

# Run all the build steps in ramdisk in an attempt to speed things up
RUN --mount=type=tmpfs,target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
RUN target=${BUILD_DIR} cp -R /src/. ${BUILD_DIR}/ \
&& cd ${BUILD_DIR} \
&& rustup target add ${TARGET} \
&& rustup component add rustfmt \
&& cargo build --features monitoring_prom,slog_json --release --workspace --target ${TARGET} \
&& mkdir -p /out \
&& cp -R ${BUILD_DIR}/target/${TARGET}/release/. /out
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/atlas-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
- name: Setup Test Environment
id: setup_tests
uses: stacks-network/actions/stacks-core/testenv@main

with:
btc-version: "25.0"

## Run test matrix using restored cache of archive file
## - Test will timeout after env.TEST_TIMEOUT minutes
- name: Run Tests
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/bitcoin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
test-name:
- tests::bitcoin_regtest::bitcoind_integration_test
- tests::integrations::integration_test_get_info
- tests::neon_integrations::antientropy_integration_test ## forced failure
- tests::neon_integrations::antientropy_integration_test
- tests::neon_integrations::bad_microblock_pubkey
- tests::neon_integrations::bitcoind_forking_test
- tests::neon_integrations::bitcoind_integration_test
Expand Down Expand Up @@ -75,7 +75,9 @@ jobs:
- name: Setup Test Environment
id: setup_tests
uses: stacks-network/actions/stacks-core/testenv@main

with:
btc-version: "25.0"

## Run test matrix using restored cache of archive file
## - Test will timeout after env.TEST_TIMEOUT minutes
- name: Run Tests
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
uses: stacks-network/actions/stacks-core/cache/bitcoin@main
with:
action: save
btc-version: "25.0"

## Cache nextest archives for tests
nextest-archive:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/epoch-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
- name: Setup Test Environment
id: setup_tests
uses: stacks-network/actions/stacks-core/testenv@main

with:
btc-version: "25.0"

## Run test matrix using restored cache of archive file
## - Test will timeout after env.TEST_TIMEOUT minutes
- name: Run Tests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/slow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
- name: Setup Test Environment
id: setup_tests
uses: stacks-network/actions/stacks-core/testenv@main

with:
btc-version: "25.0"

## Run test matrix using restored cache of archive file
## - Test will timeout after env.TEST_TIMEOUT minutes
- name: Run Tests
Expand Down
43 changes: 33 additions & 10 deletions .github/workflows/stacks-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
uses: stacks-network/actions/stacks-core/testenv@main
with:
genesis: true
btc-version: "25.0"

## Run test matrix using restored cache of archive file
## - Test will timeout after env.TEST_TIMEOUT minutes
Expand Down Expand Up @@ -84,7 +85,9 @@ jobs:
- name: Setup Test Environment
id: setup_tests
uses: stacks-network/actions/stacks-core/testenv@main

with:
btc-version: "25.0"

## Run test matrix using restored cache of archive file
## - Test will timeout after env.TEST_TIMEOUT minutes
- name: Run Tests
Expand Down Expand Up @@ -135,25 +138,45 @@ jobs:
# Core contract tests
core-contracts-clarinet-test:
name: Core Contracts Test
defaults:
run:
working-directory: "./contrib/core-contract-tests/"
runs-on: ubuntu-latest
steps:
## Checkout the code
- name: Checkout the latest code
id: git_checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

## Use Clarinet to run contract unit-tests and create code coverage file
- name: Execute core contract unit tests in Clarinet
uses: actions/checkout@v3
- name: Execute core contract unit tests with clarinet-sdk
id: clarinet_unit_test
uses: docker://hirosystems/clarinet:1.8.0
uses: actions/setup-node@v3
with:
args: test --coverage --manifest-path=./contrib/core-contract-tests/Clarinet.toml

node-version: 18.x
cache: "npm"
cache-dependency-path: "./contrib/core-contract-tests/package-lock.json"
- run: npm ci
- run: npm test
## Upload code coverage file
- name: Code Coverage
id: codecov
uses: stacks-network/actions/codecov@main
with:
test-name: ${{ matrix.test-name }}
upload-only: true
filename: ./coverage.lcov
filename: ./lcov.info

# Core contract tests on Clarinet v1
# Check for false positives/negatives
# https://github.com/stacks-network/stacks-blockchain/pull/4031#pullrequestreview-1713341208
core-contracts-clarinet-test-clarinet-v1:
name: Core Contracts Test Clarinet V1
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
id: git_checkout
uses: actions/checkout@v3
- name: Execute core contract unit tests in Clarinet
id: clarinet_unit_test_v1
uses: docker://hirosystems/clarinet:1.7.1
with:
args: test --manifest-path=./contrib/core-contract-tests/Clarinet.toml contrib/core-contract-tests/tests/bns/name_register_test.ts

Loading