Derrick Hammer
|
0d9d7d4d98
|
refactor: store to 20 decimal places
|
2024-03-11 07:54:52 -04:00 |
Derrick Hammer
|
973c40afb4
|
refactor: switch to using decimals in db, a fork of the siacentral api to return decimals, strings for currency settings, and rats to do big number math safety
|
2024-03-11 07:51:48 -04:00 |
Derrick Hammer
|
a4bb3eadaa
|
fix: wrong debug output
|
2024-03-11 06:49:10 -04:00 |
Derrick Hammer
|
e7caa50932
|
fix: don't store MaxRPCSCPrice as a float, and use big.Rat to compute it
|
2024-03-11 06:42:51 -04:00 |
Derrick Hammer
|
7f9887bdcc
|
fix: don't divide maxDownloadPrice by redundancy
|
2024-03-10 17:32:37 -04:00 |
Derrick Hammer
|
6edf872664
|
fix: need to divide by block time (blocks in a month)
|
2024-03-10 17:01:55 -04:00 |
Derrick Hammer
|
20a273a0dd
|
refactor: change maxStoragePrice math for readability
|
2024-03-10 14:50:25 -04:00 |
Derrick Hammer
|
d628ede1ee
|
fix: use maxStoragePrice
|
2024-03-10 14:48:09 -04:00 |
Derrick Hammer
|
9d17ae1065
|
fix: don't compute maxRPCPrice based on usd rate
|
2024-03-10 14:42:00 -04:00 |
Derrick Hammer
|
01cd30b6f8
|
fix: divide maxRPCPrice by 1 million
|
2024-03-10 14:38:59 -04:00 |
Derrick Hammer
|
22a5c661bc
|
refactor: update max_rpc_sc_price default to 0.1
|
2024-03-10 14:36:45 -04:00 |
Derrick Hammer
|
51d74b6483
|
refactor: add max_contract_sc_price to defaults
|
2024-03-10 14:35:37 -04:00 |
Derrick Hammer
|
57c5088a1f
|
fix: max_rpc_price needs to be max_rpc_sc_price
|
2024-03-10 14:35:05 -04:00 |
Derrick Hammer
|
6eeed24707
|
fix: need to divide maxStoragePrice by a tib unit
|
2024-03-10 14:33:46 -04:00 |
Derrick Hammer
|
af29081a3a
|
refactor: have rpc and contract prices be in SC as they are expected to change very rarely
|
2024-03-10 14:26:17 -04:00 |
Derrick Hammer
|
1568aa9007
|
fix: redundancy applies to storage not downloads, and add debug logging per rate computed
|
2024-03-10 14:14:36 -04:00 |
Derrick Hammer
|
5687e72a32
|
refactor: change SCPriceHistory table name
|
2024-03-10 13:58:45 -04:00 |
Derrick Hammer
|
e425c038e1
|
fix: use config PriceHistoryDays
|
2024-03-10 13:56:41 -04:00 |
Derrick Hammer
|
effb341418
|
refactor: don't block price updates, but do fatal on error
|
2024-03-10 13:52:49 -04:00 |
Derrick Hammer
|
8c05180703
|
refactor: move price tracker init to a lifecycle
|
2024-03-10 13:29:43 -04:00 |
Derrick Hammer
|
21ae6d093d
|
refactor: fetch redundancy settings and divide on it so price is always the total
|
2024-03-10 13:25:33 -04:00 |
Derrick Hammer
|
c9683453c0
|
feat: add RedundancySettings getter
|
2024-03-10 13:13:25 -04:00 |
Derrick Hammer
|
ae178f003f
|
refactor: put sia config under storage
|
2024-03-10 13:07:44 -04:00 |
Derrick Hammer
|
b6683a5744
|
fix: default to debug if no config is passed, we will then error on config parsing after
|
2024-03-10 13:02:31 -04:00 |
Derrick Hammer
|
39a39b00b7
|
fix: need prefix on setDefaultsForObject for core to be core
|
2024-03-10 12:54:15 -04:00 |
Derrick Hammer
|
dd296bd78a
|
feat: add initial price tracker
|
2024-03-10 12:43:18 -04:00 |
Derrick Hammer
|
736dc8aa9d
|
refactor: simplify sia upload to not try to parallel process as it corrupts data. We will come back to this optimization in the future.
|
2024-03-10 11:54:32 -04:00 |
Derrick Hammer
|
6c60dae743
|
fix: if the render end is 0, ensure the range header is valid syntax and skip it
|
2024-03-10 11:53:24 -04:00 |
Derrick Hammer
|
f56377df2b
|
dep: update libs5
|
2024-03-10 09:17:46 -04:00 |
Derrick Hammer
|
8c0a2451e4
|
dep: update libs5
|
2024-03-10 09:11:26 -04:00 |
Derrick Hammer
|
89bbd8b061
|
dep: update libs5
|
2024-03-10 08:58:23 -04:00 |
Derrick Hammer
|
ce977da5c1
|
dep: update libs5
|
2024-03-10 08:56:29 -04:00 |
Derrick Hammer
|
770e3335d1
|
dep: update libs5
|
2024-03-10 08:41:21 -04:00 |
Derrick Hammer
|
ab5356f024
|
dep: update libs5
|
2024-03-10 07:39:23 -04:00 |
Derrick Hammer
|
673cd535a0
|
dep: update libs5
|
2024-03-10 07:26:05 -04:00 |
Derrick Hammer
|
1f1f204b35
|
fix: only return noop is we are SeekStart and want the beginning, otherwise this is likely actually needing to start a partial content seek
|
2024-03-09 17:46:18 -05:00 |
Derrick Hammer
|
e89a9450e9
|
fix: don't tie contexts to tus http context
|
2024-03-09 16:55:10 -05:00 |
Derrick Hammer
|
0c90924f31
|
refactor: add checking tus for metadata before uploads
|
2024-03-09 15:37:58 -05:00 |
Derrick Hammer
|
f3040399e4
|
feat: add GetUploadSize
|
2024-03-09 15:37:16 -05:00 |
Derrick Hammer
|
887f51f88d
|
fix: need to set upload id on siaUpload
|
2024-03-09 14:45:31 -05:00 |
Derrick Hammer
|
4020b9f7c7
|
fix: S5File::Exists needs to check tus before uploads
|
2024-03-09 14:27:07 -05:00 |
Derrick Hammer
|
d0d67d2ae5
|
dep: update libs5
|
2024-03-09 13:23:07 -05:00 |
Derrick Hammer
|
1a1d34ef7a
|
dep: update libs5
|
2024-03-09 07:17:13 -05:00 |
Derrick Hammer
|
1da600f1ca
|
dep: update libs5
|
2024-03-09 07:00:55 -05:00 |
Derrick Hammer
|
2bff5d2b9e
|
refactor: switch to new libs5 kv db interface
|
2024-03-09 06:58:32 -05:00 |
Derrick Hammer
|
5e31dc2f02
|
dep: update libs5
|
2024-03-09 06:55:13 -05:00 |
Derrick Hammer
|
4261bb6a5d
|
refactor: if the file exists locally, pull from out own node before fetching it from the net
|
2024-03-07 16:59:50 -05:00 |
Derrick Hammer
|
e489de1e86
|
dep: update libs5
|
2024-03-07 16:54:57 -05:00 |
Derrick Hammer
|
8a6516e157
|
fix: if root return a file with that set
|
2024-03-07 16:48:56 -05:00 |
Derrick Hammer
|
6e97b582ba
|
fix: pass Name to override using CID
|
2024-03-07 16:48:20 -05:00 |