-
Notifications
You must be signed in to change notification settings - Fork 6
Disk billing #1841
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
Merged
Merged
Disk billing #1841
Changes from 95 commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
697f696
add disk pricing to virtual server
James-Mart 71c6460
settle virtual billing cost when enabling billing
James-Mart 92cd806
config ui - show missing subjective storage config
James-Mart 3eba32d
add proposal pusher test helper
James-Mart b04fcfb
add disk usage trace helpers
James-Mart 28055f7
add virtual server disk billing tests
James-Mart de0da83
fix typo
James-Mart ff7684a
Merge remote-tracking branch 'origin/main' into disk-billing
James-Mart 88cc456
fix merge
James-Mart e5c5915
Merge remote-tracking branch 'origin/main' into disk-billing
James-Mart 5dacc5c
pr feedback - fix capacity limit pricing curve comments
James-Mart c0c6bc8
minor cleanup - capacity-limit-pricing is generic (not specifically d…
James-Mart ad779e3
pr feedback - avoid potential overflow
James-Mart fb6329c
reject quotes for consuming more than remaining capacity
James-Mart 5362018
pr feedback - improve documentation
James-Mart 2d800db
pr feedback - improve var naming clarity
James-Mart f9923b7
pr feedback - avoid another potential overflow
James-Mart 29c9868
pr feedback - fix another potential overflow
James-Mart cde1edd
pr feedback - use AccountNumber(0) instead of harcoding 'system' account
James-Mart 32ee5c4
fix virtual-server tests
James-Mart 09ceaac
move txid included table tracking to after action processing (and the…
James-Mart 41a4b62
fix diagram
James-Mart 47f3efa
fix prealloc accounting
James-Mart 5ff08ce
eliminate separate tracking of VirtualBalance
James-Mart cc0abad
derive reserve from curve position
James-Mart 8a0e961
remove unnecessary debug print in transact
James-Mart 932dc18
improve skip-billing flow to detect unexpected db writes
James-Mart a477990
improve overflow protection - restore u128 intermediates in average c…
James-Mart 254f792
remove unnecessary Cell usage
James-Mart a08b251
allow 0 fee_ppm for disk billing
James-Mart bd1f2f7
fix relay subaccount: prevent subaccount overlap with user subaccounts
James-Mart ede707d
improve tests
James-Mart 8ceca56
fix the disk accounting tests (properly subtract the status row from …
James-Mart a09df40
Merge remote-tracking branch 'origin/main' into disk-billing
James-Mart 5b527ed
merge fixes
James-Mart c95e649
fix enable-billing token credit flow
James-Mart 1cddee1
remove obselete key size check
James-Mart 89bd6af
don't strip extra trailing newlines from console trace
James-Mart e7c0f92
use the + format flag for signed disk amounts
James-Mart 5d39775
drop unneeded guard in curve endpoint test
James-Mart 82704e9
check disk accounting invariant at the end of each chain test
James-Mart 1e463b4
replace ProposeExt trait with a generic Chain::propose method
James-Mart e2f2746
more sane free-into-prealloc-region handling
James-Mart faf85cd
formatting
James-Mart 77446a1
tighten no-arbitrage test
James-Mart 95d67cd
Merge remote-tracking branch 'origin/main' into disk-billing
James-Mart dca0b09
accrue mid-tx billing transfers until settlement at end-of-tx
James-Mart b50e1af
expose transact system write overrides to vserver
James-Mart b09e3ed
schedule fee receiver credit from vserver as a system write
James-Mart af2522c
move skipBilling logic to transact
James-Mart 60f6714
remove redundant systemWriteEnabled bool
James-Mart 7d04ee7
lock billing caches via Option::take instead of a bool
James-Mart a4e1f59
reject del_res_sub for a sub with pending billing
James-Mart c18cbd8
route balance reads through the billing cache
James-Mart 05e1e13
require the billing sub-account to exist in bill_to_sub
James-Mart 732d4cf
Merge pull request #1925 from gofractally/skip-billing-refactor
James-Mart 6c2ba8b
Merge remote-tracking branch 'origin/disk-billing' into accrue-pendin…
James-Mart c7a7be1
Merge pull request #1920 from gofractally/accrue-pending-transfers-pe…
James-Mart c20f956
improve errors
James-Mart 060f600
remove unused vserver actions
James-Mart 48e9664
harden spot_price against u64 overflow
James-Mart 0dfcc38
improve dx overflow error message
James-Mart 342a372
make abort messages more consistent
James-Mart b345290
Curve::new better param naming
James-Mart 13eccbc
rename pos_from_resources -> pos_from_remaining_capacity
James-Mart 7bd885e
standardize on 'capacity' nomenclature for the curve y axis
James-Mart 39ef9cf
improve the k overflow comment in Curve::new
James-Mart 27f187c
move curve-derivation doc onto the Curve struct
James-Mart 6a6723f
split finishTx hook from useCpuSys
James-Mart 2e72aaf
Merge pull request #1928 from gofractally/vserver-cleanups
James-Mart 9e39988
warm relay collateral into the billing cache at bill start
James-Mart 37db4dc
socialize relay balance record creation as a system write
James-Mart 93b33e9
add [DB_WRITE] explanation for end-of-tx reconciliation db write mana…
James-Mart 75ee7bc
add prestartTx - prewarm billable resource subaccount balances
James-Mart 4bfcca6
move prestartTx call location
James-Mart 83f5855
warm relay collateral into the billing cache at bill start
James-Mart 03992ee
clamp user refund and fee-receiver fee by available collateral
James-Mart 08b3342
enabling billing no longer requires a payer
James-Mart 50fa51b
fix free-into-prealloc test - we can no longer rely on the refund fro…
James-Mart 3b945a9
add capacity limited curve collateralization documentation
James-Mart 4248eda
make enable-billing one-way (no longer can disable billing)
James-Mart 2f5ed9a
fix enable-billing usage in the UI
James-Mart b289509
fix merge
James-Mart 0ede2bf
handle prealloc via consume rather than a capacity offset
James-Mart f6984ef
only consider the sender of the first action as a trx actor for now
James-Mart 10efed9
update prestartTx interface to only accept one primary actor
James-Mart 34ea726
Merge branch 'relay-billing' into new-enable-billing-strategy
James-Mart 8c26579
Merge pull request #1930 from gofractally/relay-billing
James-Mart d60e585
update fee/refund behavior
James-Mart 860c1f7
fix recollateralization
James-Mart a927a9c
Merge pull request #1931 from gofractally/new-enable-billing-strategy
James-Mart 64e979d
Merge remote-tracking branch 'origin/main' into disk-billing
James-Mart d52c35f
prefer reading transact table via action interface over direct table …
James-Mart 4c947a2
allow privileged services to read db from any service prefix
James-Mart d322011
make virtual-server privileged
James-Mart 53940a4
prefer inline actions over direct table reads
James-Mart 55a75b9
fix system token rendering
James-Mart e28ef80
allow pending page to render when an account has no other balances
James-Mart 3c27e29
sync under-collateralization diagram in vserver docs
James-Mart 67b519f
collapse disk-usage total into a single writeln
James-Mart 96318a3
stop recursing into useDiskSys
James-Mart 77f9772
unpack useDiskSys via action_structs
James-Mart 61f21d0
open prealloc scans via native kvOpen
James-Mart 7655e4a
fix vserver tests
James-Mart 263274d
Merge remote-tracking branch 'origin/main' into disk-billing
James-Mart 4aacda1
move open_direct onto KvHandle
James-Mart 82e34a9
fix merge
James-Mart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.