Commit Graph

17967 Commits

Author SHA1 Message Date
Greg Coppola
30581c7826 use mass noun instead of count noun 2022-09-08 18:42:44 -05:00
Greg Coppola
f9c31181b0 refactored make_keyword_reference and make_for_special 2022-09-08 18:40:54 -05:00
Greg Coppola
3ba7d58f55 add to changelog 2022-09-02 09:36:42 -05:00
Greg Coppola
6beb4e674a specify clarity "version" number 2022-09-02 09:01:30 -05:00
Jude Nelson
7d960260b5 Merge pull request #3249 from stacks-network/docs-microstacks
docs: clarify amounts in microstacks
2022-08-25 23:38:29 +00:00
Jude Nelson
c3a624f75b Merge branch 'next' into docs-microstacks 2022-08-22 15:09:13 +00:00
Jude Nelson
357405b155 Merge pull request #3245 from stacks-network/feat/get-pox-addrs
Feat/get pox addrs
2022-08-22 01:42:33 +00:00
Jude Nelson
7f5af6b631 chore: add/expand rust docs and remove dead code 2022-08-19 10:51:40 -04:00
Brice Dobry
2bb0ee182d docs: address review comments 2022-08-17 13:41:00 -04:00
Jude Nelson
4d78bfcd2a fix: update integration test to verify that 1 or 2 burn addresses get reported, and at the right time 2022-08-16 10:31:06 -04:00
Jude Nelson
0a49e0b149 fix: update test to verify that 1 or 2 burn addresses are reported, and at the right time 2022-08-16 10:30:46 -04:00
Jude Nelson
09ad07a566 fix: populate PoX addresses paid out with burn addresses, up to OUTPUTS_PER_COMMIT (in the reward phase) or 1 (in the prepare phase) 2022-08-16 10:30:17 -04:00
Jude Nelson
e0b342c3df docs: indicate that burn addresses will be reported in pox-addrs 2022-08-16 10:29:57 -04:00
Brice Dobry
2116cdf677 docs: clarify amounts in microstacks
There is no mention of microstacks in this documentation, which could be
confusing for new developers. This commit specifies the units for the
amounts used in  `stx-get-balance`, `stx-account`, `stx-transfer?` and
`stx-burn?`.
2022-08-12 15:12:57 -04:00
Jude Nelson
699a3c49c2 feat: query pox payouts from snapshots table, not the MARF 2022-08-12 12:36:04 -04:00
Jude Nelson
c9a3d03e0f chore: store PoX payouts in the snapshots table instead of the MARF, since we'll have an entry for every sortition 2022-08-12 12:35:45 -04:00
Jude Nelson
2bb1c1ddbb chore: return Clarity tuples not PoxAddresses 2022-08-12 12:35:31 -04:00
Jude Nelson
eb898ea70d chore: revert changes to the MARF's read-only views (because YAGNI) 2022-08-12 12:34:28 -04:00
Jude Nelson
49dea6ed73 refactor: move PoxAddress to src/chainstate/stacks/address.rs, and have BurnStateDB::get_pox_payout_addrs() return Option<Vec<TupleData>, u128> instead of Option<Vec<PoxAddress>, u128>. This makes more sense since the chainstate module depends on PoxAddress far more so than Clarity. So, have the BurnStateDB return the tuple representation of a PoxAddress, and have the chainstate module convert that tuple into a PoxAddress once needed. 2022-08-11 11:20:55 -04:00
Jude Nelson
d3716f3477 chore: log initial mining bonus 2022-08-10 11:47:48 -04:00
Jude Nelson
5742e37e16 docs: note that uncommitted writes are visible in get_indexed() 2022-08-10 11:47:34 -04:00
Jude Nelson
a529500741 fix: don't re-open a storage tx's underlying DB (since then uncommitted writes are not visible); instead, pass an immutable reference to the tx's db handle 2022-08-10 11:47:04 -04:00
Jude Nelson
a327c0a787 fix: no longer comparing address version, but hash mode 2022-08-10 11:46:48 -04:00
Jude Nelson
8b18fa169e fix: no longer comparing address version, but hash mode 2022-08-10 11:46:33 -04:00
Jude Nelson
1ae111d586 fix: fix failing test -- we can't deduce the true hash mode from just a bitcoin txout 2022-08-10 11:45:56 -04:00
Jude Nelson
283741853d fix: test that our get-burn-block-info? pox-addrs calls return the right payout if we're in the prepare vs reward phase 2022-08-09 16:34:47 -04:00
Jude Nelson
e34add8a91 fix: when mocking a block-commit, always put in the correct burn addresses 2022-08-09 16:34:31 -04:00
Jude Nelson
65127c464d fix: test the correct payout value when we're in the prepare vs reward phase 2022-08-09 16:34:14 -04:00
Jude Nelson
68310f2f43 fix: use PoxConstants to determine when we're in the prepare phase, not the block-commit itself 2022-08-09 16:33:42 -04:00
Jude Nelson
6fb6529ce1 Merge branch 'next' into feat/get-pox-addrs 2022-08-09 15:01:57 -04:00
Jude Nelson
f4d5f567c1 chore: make the new transition_adds_get_pox_addr_recipients test run in CI 2022-08-09 14:57:50 -04:00
Jude Nelson
4ae87a33d1 feat: integration test for get-burn-block-info? pox-addrs 2022-08-09 14:56:59 -04:00
Jude Nelson
9c48135a71 fix: config.burnchain.peer_host should default to 127.0.0.1 instead of a DNS name, so the test will still run without a network connection 2022-08-09 14:56:28 -04:00
Jude Nelson
77850d1a26 refactor: using PoxAddress instead of StacksAddress 2022-08-09 14:55:46 -04:00
Jude Nelson
a5ec814aee refactor: using PoxAddress instead of StacksAddress 2022-08-09 14:55:25 -04:00
Jude Nelson
ad2c28515e refactor: using PoxAddress instead of StacksAddress 2022-08-09 14:55:05 -04:00
Jude Nelson
a87c2ea795 refactor: now using PoxAddress instead of StacksAddress 2022-08-09 14:54:40 -04:00
Jude Nelson
161478d831 refactor: use PoxAddress (and its extensions) isntead of StacksAddress 2022-08-09 14:54:18 -04:00
Jude Nelson
0d146052f0 chore: derive all the usual things for AddressHashMode to make it serializable and comparable 2022-08-09 14:53:56 -04:00
Jude Nelson
0695eff5d0 feat: get_indexed() and get_ancestor_block_hash() in an IndexDBTx now require only an immutable reference 2022-08-09 14:53:30 -04:00
Jude Nelson
54e4466a33 refactor: using PoxAddress instead of StacksAddress 2022-08-09 14:53:04 -04:00
Jude Nelson
83f0e8f18e feat: implement get_pox_payout_addrs() 2022-08-09 14:52:51 -04:00
Jude Nelson
902ee00c5a chore: mock get_pox_payout_addrs() 2022-08-09 14:52:35 -04:00
Jude Nelson
215df5dd75 refactor: API sync 2022-08-09 14:52:14 -04:00
Jude Nelson
b48f6181d2 feat: add the ability to run a closure against the uncommitted MARF storage transaction state with only an immutable reference (required to make it possible to query the sortition DB MARF within a BurnStateDB impl) 2022-08-09 14:51:28 -04:00
Jude Nelson
85ea09a80f refactor: distinguish between reopening a MARF as read-only with or without uncommitted state from the underlying storage connection 2022-08-09 14:50:57 -04:00
Jude Nelson
3635d41a88 chore: TrieCache and TrieCacheState are now clone()-able 2022-08-09 14:50:39 -04:00
Jude Nelson
78782d1b48 chore: mock get_pox_payout_addrs() 2022-08-09 14:50:23 -04:00
Jude Nelson
a824c265fc refactor: now using PoxAddress instead of StacksAddress to recover input to stack-stx from on-chain StackStxOp 2022-08-09 14:49:52 -04:00
Jude Nelson
c7cf37660b feat: add unit tests for get-burn-block-info? pox-addrs (and update other tests to use PoxAddress instead of StacksAddress) 2022-08-09 14:49:09 -04:00