Aaron Blankstein
e212b6d1e1
address PR feedback
2022-09-02 11:43:40 -05:00
Aaron Blankstein
266caf2ba2
make auto-unlocks free for block limit, more PR feedback
2022-08-31 16:26:13 -05:00
Aaron Blankstein
9d00a6cfd4
address PR feedback, use define-private method for handling unlock updates
2022-08-30 15:55:28 -05:00
Aaron Blankstein
9e676926c0
refactor: add SortitionHandle trait to capture tx+conn
2022-08-26 13:46:50 -05:00
Aaron Blankstein
10244bfa00
address PR feedback
2022-08-26 09:25:28 -05:00
Aaron Blankstein
e762a9c2f2
Merge remote-tracking branch 'origin/next' into feat/pox-2-unlock
2022-08-26 08:44:49 -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
Aaron Blankstein
57557e7759
Merge remote-tracking branch 'origin/next' into feat/pox-2-unlock
2022-08-25 12:58:20 -05:00
Aaron Blankstein
0014b0f3f3
consolidate contributed stackers
2022-08-22 12:54:50 -05: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
Aaron Blankstein
a464575876
first simple test for pox auto-unlock
2022-08-18 16:39:42 -05:00
Aaron Blankstein
b4b1f42b85
Merge remote-tracking branch 'origin/feat/get-pox-addrs' into feat/pox-2-unlock
2022-08-18 11:28:24 -05:00
Aaron Blankstein
6fff6197cd
update existing tests
2022-08-18 11:05:20 -05:00
Aaron Blankstein
7bc7bccdd5
implemented auto-unlock, now for testing...
2022-08-17 16:58:55 -05:00
Brice Dobry
2bb0ee182d
docs: address review comments
2022-08-17 13:41:00 -04:00
Aaron Blankstein
59b5c4bd6b
first pass at actually processing unlocks. fair amount of complexity here.
2022-08-16 19:31:08 -05: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
Aaron Blankstein
811257e69b
correlate non-delegated stack-stx lockups with stacker
2022-08-11 10:22:55 -05: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