Commit Graph

526 Commits

Author SHA1 Message Date
Eric f10cf41e4d
Improve multinode suite for better debug options, including logging to file
There is a 503 "sales unavailable" error
2023-09-29 20:02:30 +10:00
Eric b5c4be351d
Update multinode suite for better simulateFailedProofs enabling, add proofs test 2023-09-29 14:36:17 +10:00
Eric 6ba03b7a14
Fix proving with latest ethers bump (tested on master) 2023-09-29 14:36:17 +10:00
Eric 9e421e4a81
bump ethers: rebased on top of cancel tx due to estimateGas error PR 2023-09-29 14:36:17 +10:00
Eric 5a83a44280
ethers: fix build error 2023-09-29 14:36:17 +10:00
Eric 3288a024ce
ensure gas is being serialized in Transaction 2023-09-29 14:36:17 +10:00
Eric f9dbd3da8b
ethers: add gas into and remove type from replayed txs 2023-09-29 14:36:17 +10:00
Eric d32f1e2e3c
ethers: include type and chainId in replayed txs 2023-09-29 14:36:17 +10:00
Eric 60ef67b7bb
ethers: try replay without decrementing blockNumber 2023-09-29 14:36:17 +10:00
Eric 19fe581d7a
remove unneeded confirm 2023-09-29 14:36:17 +10:00
Eric 2537add13a
ethers: update revert reason retreival 2023-09-29 14:36:17 +10:00
Eric 08690862e0
fix build 2023-09-29 14:36:17 +10:00
Eric 2ad040a920
ethers bump: better logging, separate logic for revert reason string 2023-09-29 14:36:17 +10:00
Eric 10c5c0b919
bump ethers to add serialization for PastTransaction 2023-09-29 14:36:17 +10:00
Eric 64b5f00955
bump ethers to replay tx with past tx format 2023-09-29 14:36:17 +10:00
Eric eadf1ccf88
bump ethers - better Transaction object deserialization 2023-09-29 14:36:17 +10:00
Eric 012613115c
ethers debug logging 2023-09-29 14:36:17 +10:00
Eric 5888170f95
bump ethers to fix "key not found: data" error 2023-09-29 14:36:17 +10:00
Eric 170f897607
moar debugging 2023-09-29 14:36:17 +10:00
Eric 7fb335767a
moar debugging 2023-09-29 14:36:17 +10:00
Eric 2ab9034c12
moar debugging 2023-09-29 14:36:17 +10:00
Eric 9fe0f2ae81
bump nim-ethers to prevent parsing newHeads log from crashing sales state machine 2023-09-29 14:36:17 +10:00
Eric 0cf876b3a0
bump json-rpc and nim-ethers 2023-09-29 14:36:17 +10:00
Eric 7d5a0c8747
switch to earlier nim-ethers commit 2023-09-29 14:36:17 +10:00
Eric 64e5ad4f4a
fix contracts tests 2023-09-29 14:36:17 +10:00
Eric 3cde50596f
bump ethers to add chronicles 2023-09-29 14:36:17 +10:00
Eric 668ff7be8d
debugging: change echo to trace 2023-09-29 14:36:17 +10:00
Eric 658ef1a217
moar debugging 2023-09-29 14:36:17 +10:00
Eric 0365ddc0eb
add more debugging 2023-09-29 14:36:16 +10:00
Eric 52e61a0c58
fix confirmation of fillSlot 2023-09-29 14:36:16 +10:00
Eric 1fb3681c91
wait for fillSlot to be mined (so that a revert error can be extracted) 2023-09-29 14:36:16 +10:00
Eric 27ae16c1f8
fix build 2023-09-29 14:36:16 +10:00
Eric a74e657515
more debug logging 2023-09-29 14:36:16 +10:00
Eric 58a97856b4
Add cancel on error during filling state
When calling fillSlot, any transaction errors that occur (possibly during estimate gas) will cause that tx to be replaced with a cancellation transaction (a 0-valued tx to ourselves).
2023-09-29 14:36:16 +10:00
Eric c068e7425b
Add debugging for dist tests 2023-09-29 14:36:16 +10:00
Eric 7b6f137cf4
Revert "filter past requests based on availability"
This reverts commit 0c2362658b.
2023-09-29 14:36:16 +10:00
Eric 6270e8ef1f
filter past requests based on availability
Because availability filtering on push was removed, when availability is added and past storage request events are queried, those requests need to be filtered by availability before being added to the queue.
2023-09-29 14:36:16 +10:00
Eric 29d6853a19
Add additional test check for querying reservations/availabilities 2023-09-29 14:36:16 +10:00
Eric 1ba108e481
Revert change to slotSize that reduces it by one block 2023-09-29 14:36:16 +10:00
Eric 5a0ccc4d62
Fix slotSize to reduce by one block 2023-09-29 14:36:16 +10:00
Eric f3f7974a10
change slotsize to reflect current implemenation 2023-09-29 14:36:16 +10:00
Eric 38b1017e1d
add missing file 2023-09-29 14:36:16 +10:00
Eric 320164c2c0
add exception message detail util
Apply to onStore errors as we are seeing undetailed errors in the dist tests logs
2023-09-29 14:36:16 +10:00
Eric 21403e6411
clean up 2023-09-29 14:36:16 +10:00
Eric ec99992665
Add deletion of inactive reservations on sales load 2023-09-29 14:36:16 +10:00
Eric 0d6b3f862b
All tests that use the Reservation module updated
- add requestId and slotIndex to Reservation (hopefully these will prove to be useful when we persist Reservations until request are completed, to add back bytes to Availability)
- add querying of all reservations, with accompanying tests
- change from find to findAvailabilities
- move onCleanUp from SalesContext to SalesAgent as it was getting overwritten for each slot processed
- remove sales agent AFTER deleting reservation, as this was causing some SIGSEGVs
- retrofit testsales and testslotqueue to match updated Reservations module API
2023-09-29 14:36:16 +10:00
Eric 0e751fe27d
refactor Reservations api to include Reservation CRUD 2023-09-29 14:36:16 +10:00
Eric e925927278
Add Reservation object, rename reserve > create 2023-09-29 14:36:16 +10:00
Eric a24efbdf56
Process slot queue on reservation callback onMarkUnused 2023-09-29 14:36:16 +10:00
Eric c87715046e
Log the entire config and fix build error 2023-09-29 14:32:02 +10:00