Commit Graph

16881 Commits

Author SHA1 Message Date
Matthew Little
1a9ef3ca23 chore: remove redundant ascii check scan 2022-03-15 23:48:03 +01:00
Matthew Little
a1a681a59e feat: reduce allocs in sha256 digests 2022-03-15 23:37:39 +01:00
Matthew Little
80ad9d2560 chore: c32 optimizations, round 3 2022-03-15 23:37:39 +01:00
Matthew Little
7ace1e9662 chore: c32 optimizations, round 2 2022-03-15 23:37:39 +01:00
Matthew Little
6f5fe51c57 feat: c32 optimizations 2022-03-15 23:37:39 +01:00
Jude Nelson
c044b59ed0 chore: move all MARF tests into their own module 2022-03-15 14:06:33 -04:00
Jude Nelson
105763d9d8 chore: add changelog entry 2022-03-15 12:36:47 -04:00
Jude Nelson
f66d137a88 Merge branch 'develop' into feat/marf-node-cache 2022-03-15 12:35:09 -04:00
Jude Nelson
b2ce961369 Merge branch 'develop' of https://github.com/blockstack/stacks-blockchain into develop 2022-03-15 12:34:57 -04:00
Jude Nelson
501b2b382b chore: add changelog entries 2022-03-15 12:34:42 -04:00
Jude Nelson
5d7001effb Merge branch 'develop' into fix/3045 2022-03-15 12:32:17 -04:00
Jude Nelson
cbda7cb6d5 chore: use issue number, not PR number 2022-03-15 12:31:44 -04:00
Jude Nelson
94d62dceca fix: update changelog with sortition processing 2022-03-15 12:29:35 -04:00
Jude Nelson
30890c6350 Merge branch 'develop' into feat/faster-inv-generation 2022-03-15 16:12:21 +00:00
wileyj
443f248288 Merge pull request #3071 from stacks-network/feat/contrib
Adding contrib dir
2022-03-15 09:04:17 -07:00
wileyj
1d1d6286fe Update for PR comments
- shellcheck adjustments for sysv init script
- launchd/systemd disabled respawn
- updated docs to reflect changes
2022-03-14 14:49:05 -07:00
wileyj
b14f366797 Adding contrib dir
Moving:
- deployment/helm -> contrib/helm
- tools -> contrib/tools
Adding:
- contrib/init/{stacks.init,stacks.service,org.stacks.stacks-blockchain.plist}
- docs/init.md
2022-03-11 20:48:40 -08:00
Jude Nelson
3d9ffcb8b3 fix: also add hash160 of public key as well, since that's what's reported in /v2/neighbors 2022-03-10 14:19:48 -05:00
Jude Nelson
5e2003203e feat: include the node public key in /v2/info 2022-03-10 14:13:55 -05:00
Jude Nelson
f6c78b0263 Merge pull request #3065 from stacks-network/fix/trait-not-found
Fix trait not found error messages
2022-03-10 15:08:20 +00:00
Jude Nelson
35283896bf chore: load root hashes of all tries across multiple MARFOpenOpts and verify that they're the same in all cases 2022-03-09 14:32:38 -05:00
Jude Nelson
4ea7c99ff2 fix: update sql comment on parent_consensus_hash 2022-03-09 13:52:58 -05:00
Jude Nelson
77c69c87e0 chore: remove needless map_err() 2022-03-09 13:50:17 -05:00
Jude Nelson
183e57c87d fix: use rusqlite methods to shorten code path for queries 2022-03-09 13:49:58 -05:00
Jude Nelson
3b956ff48c chore: move TrieBenchmark code into its own file, and document all the fields 2022-03-09 13:27:55 -05:00
Jude Nelson
a331919041 chore: fix cargo warning by removing an assignment that will never be read 2022-03-09 13:27:23 -05:00
Jude Nelson
e68486ef5a fix: when storing an external trie blob, offer the ability to replace an existing blob (and reset its offset/length) for migration purposes 2022-03-09 13:27:01 -05:00
Jude Nelson
81f375778c chore: document new methods and also make it so that we can use the cache for nodes separately from hashes 2022-03-09 13:26:25 -05:00
Jude Nelson
8b2d44e93a chore: add profile module 2022-03-09 13:26:06 -05:00
Jude Nelson
9556af3115 chore: Add a force_db_migrate MARF open option for testing DB migration. Also, clean up benchmarking API calls 2022-03-09 13:25:41 -05:00
Jude Nelson
e6c859c76b fix: fix sqlite to blobs migration path and add a test for it 2022-03-09 13:25:15 -05:00
Jude Nelson
dadf6b3d57 chore: document new methods and move TrieBenchmark into its own module 2022-03-09 13:24:40 -05:00
Aaron Blankstein
17d4b221a2 Merge remote-tracking branch 'origin/develop' into fix/smooth-coordinator-shutdown 2022-03-07 14:47:35 -06:00
Aaron Blankstein
b80cb42b93 fix: Atlas dispatch with try_send, relayer exit directive try_send loop 2022-03-07 14:47:11 -06:00
Jude Nelson
543bee1f11 chore: add DB migration code so we can add external blob support to an existing MARF DB 2022-03-06 15:04:40 -05:00
Jude Nelson
5cb3b46663 fix: migrate a MARF db to external blobs if need be 2022-03-06 15:04:16 -05:00
Jude Nelson
973e435d1f refactor: add methods to store and load trie blobs as part of DB migration, and add a test for loading and storing trie blobs and setting up the DB 2022-03-06 15:03:28 -05:00
Jude Nelson
83a69414ed Merge pull request #3053 from stacks-network/fix/3051
reduce DB contention between relayer and chains coordinator threads
2022-03-05 15:09:29 +00:00
Brice Dobry
b94c815240 fix: improve error in type checker
The error from the type checker when attempting to retrieve a trait type
was incorrect. If the current contract is "foo", and the type "bar.baz"
is not found in the analysis database, the error message said:

```
use of unresolved contract 'ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.foo'
```

When the actual problem was that the contract "bar" was not found.

Similarly, if the contract "bar" is found, but the trait "baz" is not
found, the same error was given, instead of correctly showing that the
trait "baz" was not found.

See #3064
2022-03-04 14:59:51 -05:00
Jude Nelson
380a363d63 fix: add method to determine the size of the trie blobs file from the DB 2022-03-04 12:33:38 -05:00
Jude Nelson
8cbf462a9e chore: test_debug! error paths 2022-03-04 12:33:25 -05:00
Jude Nelson
cbfabb4305 fix: unconditionally write unconfirmed tries to the sqlite DB, and when reading unconfirmed state, unconditionally query the unconfirmed trie from the DB (and then query nodes from the confirmed external trie blobs if configured to do so) 2022-03-04 12:32:38 -05:00
Jude Nelson
2e66b34734 chore: add more tracing to help diagnose errors when dealing with unconfirmed tries when confirmed tries are stored externally 2022-03-04 12:32:05 -05:00
Jude Nelson
9a9d4c40b0 fix: commit new tries to where the DB *says* the last trie ends; not what the file indicates 2022-03-04 12:31:23 -05:00
Aaron Blankstein
a22476d5b6 fix: do not stop event broadcasting on termination signal. any pending events *must* still be broadcasted 2022-03-03 15:26:35 -06:00
Aaron Blankstein
a0b0a5e8af feat: move Clarity block commit closer to the ChainstateTx commit 2022-03-03 14:17:59 -06:00
Jude Nelson
cfb52e0995 chore: rust fmt 2022-03-03 12:30:39 -05:00
Jude Nelson
cba21f475f fix: better description of the methods used to calculate PoX descendancy 2022-03-03 12:14:15 -05:00
Jude Nelson
c3feafb20d fix: use query_rows() 2022-03-03 10:50:18 -05:00
Jude Nelson
7a087f9365 fix: use new trait to get .to_account_principal() 2022-03-02 14:53:48 -05:00