Skip to content
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

feat: PRT: Block Hash Cache #1623

Closed
wants to merge 74 commits into from
Closed
Show file tree
Hide file tree
Changes from 72 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
6ad50a3
Logs improve
shleikes Aug 1, 2024
2b44cf8
Update the CompareRequestedBlockInBatch function
shleikes Aug 1, 2024
15cfc28
Implement the block_latest generic parser
shleikes Aug 1, 2024
0bc4356
Add the generic parser to NEAR spec
shleikes Aug 1, 2024
5f9263d
Fix lint
shleikes Aug 4, 2024
7311f98
Fix a small bug
shleikes Aug 4, 2024
86e4edb
Fix another bug
shleikes Aug 4, 2024
9c14b0d
Small log fix
shleikes Aug 4, 2024
cc0d3e8
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
shleikes Aug 4, 2024
63156f6
Small fix to parser tests
shleikes Aug 4, 2024
d029007
More logs fix
shleikes Aug 4, 2024
1f184b3
Remove the error return type from GetBlock
shleikes Aug 4, 2024
ed0c05a
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
shleikes Aug 5, 2024
758526a
Add the block_hash generic parser implementation
shleikes Aug 1, 2024
fdf6e45
Add block_hash generic parser to NEAR spec
shleikes Aug 1, 2024
3b8cfd3
Add missing NodeErrorDuration argument
shleikes Aug 4, 2024
af806c1
Add the blocks hashes to heights to the cache
shleikes Aug 4, 2024
627dccc
Lint fix
shleikes Aug 4, 2024
a86bb61
Add parsing error log
shleikes Aug 6, 2024
3e8e372
Cache error returns nil reply bug fix
shleikes Aug 6, 2024
47a4e45
Parser bug fix and log cleaning
shleikes Aug 6, 2024
3158138
Move "archive" to const
shleikes Aug 6, 2024
60136c0
Implement cache set and get relay for finalized hashes
shleikes Aug 6, 2024
34c95f1
Small fix to logs
shleikes Aug 6, 2024
acf6e3e
Rename blockHashes -> blocksHashes
shleikes Aug 6, 2024
e2ba092
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
shleikes Aug 6, 2024
d000f77
Implement the retry mechanism of archive node for blocks hashes
shleikes Aug 7, 2024
6398854
Forgotten changes after rename
shleikes Aug 7, 2024
8e929b2
Small bug fix
shleikes Aug 7, 2024
0d5dec1
Add GetExtensionByName to ExtensionParser to reduce lines of code in …
shleikes Aug 7, 2024
68237d7
Add tests for the basic relay archive retry
shleikes Aug 7, 2024
de761f1
Add TODO for Omer to see and discuss
shleikes Aug 7, 2024
a1d6553
If relay processor succeeded on the archive retry, add the hash to ca…
shleikes Aug 7, 2024
b602c59
Add archive retry on startNewBatchTicker
shleikes Aug 7, 2024
22bf9d0
Add header to indicate forced archive extension
shleikes Aug 7, 2024
dfd3a8b
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
shleikes Aug 8, 2024
39f6ff9
Change usedProviders in RelayProcessor to be a map of extensions to used
shleikes Aug 8, 2024
f1527fa
Update relay processor test to test the new header
shleikes Aug 8, 2024
c59337a
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
shleikes Aug 8, 2024
f63e3db
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
ranlavanet Aug 11, 2024
ac64ee3
remove spam
ranlavanet Aug 11, 2024
f9fecb7
fix parser based on agreed values
ranlavanet Aug 11, 2024
359206c
fix test, fix bug, add int parsers
ranlavanet Aug 11, 2024
91e6cb0
Merge branch 'main' into PRT-generic-parsers-impl-block-latest
ranlavanet Aug 11, 2024
6c3874d
add rule
ranlavanet Aug 12, 2024
60317e3
Merge branch 'PRT-generic-parsers-impl-block-latest' of github.com:la…
ranlavanet Aug 12, 2024
4e6d0c8
Merge branch 'PRT-generic-parsers-impl-block-latest' into PRT-block-h…
ranlavanet Aug 12, 2024
50181a6
fix merge conflicts
ranlavanet Aug 12, 2024
f9465d8
Merge branch 'main' into PRT-block-hash-cache
ranlavanet Aug 13, 2024
4ef8a7c
Merge branch 'main' into PRT-block-hash-cache
shleikes Aug 13, 2024
517c74c
fix method by value.
ranlavanet Aug 13, 2024
9fa4679
Merge branch 'PRT-block-hash-cache' of github.com:lavanet/lava into P…
ranlavanet Aug 13, 2024
6f93726
lint
ranlavanet Aug 13, 2024
aa21611
add near spec new parsers for problematic queries. fix test
ranlavanet Aug 13, 2024
70c4b00
adding near spec parser for query
ranlavanet Aug 13, 2024
afa91a2
adjustments part 1
ranlavanet Aug 14, 2024
c9ea31e
apply changes phase 2
ranlavanet Aug 14, 2024
7370aa2
bool message missing
ranlavanet Aug 14, 2024
5ca1d50
Merge branch 'main' into PRT-block-hash-cache
ranlavanet Aug 14, 2024
99ec538
lint shmit
ranlavanet Aug 14, 2024
7c6612f
lint shmit
ranlavanet Aug 14, 2024
2db98f2
lint shmit3
ranlavanet Aug 14, 2024
b982f71
fix relay processor test
ranlavanet Aug 14, 2024
7f05a70
remove test spam and remove unused code. also improve code flow.
ranlavanet Aug 14, 2024
e79357b
fix the cache tests :)
ranlavanet Aug 14, 2024
5c9729b
linttt
ranlavanet Aug 14, 2024
ebf0006
adding offline spec and fixing a bunch of bugs
ranlavanet Aug 15, 2024
9032509
extend cache duration
ranlavanet Aug 15, 2024
88e546d
fix earliest
ranlavanet Aug 15, 2024
98f8552
changing the get used providers mechanism
ranlavanet Aug 15, 2024
2d5e4df
feature finished 1
ranlavanet Aug 15, 2024
9b7822c
Merge branch 'main' into PRT-block-hash-cache
ranlavanet Aug 15, 2024
67a9d4a
apply some changes
ranlavanet Aug 19, 2024
3d661b4
Merge branch 'PRT-block-hash-cache' of github.com:lavanet/lava into P…
ranlavanet Aug 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions cookbook/specs/near.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
"extra_compute_units": 0,
"parsers": [
{
"parse_path": ".params.finality",
"value": "latest",
"rule": "=final || =optimistic",
"parse_type": "DEFAULT_VALUE"
}
]
},
{
"name": "EXPERIMENTAL_changes",
Expand Down Expand Up @@ -339,7 +347,13 @@
"hanging_api": true
},
"extra_compute_units": 0,
"timeout_ms": 10000
"timeout_ms": 10000,
"parsers": [
{
"parse_path": ".params.[0]",
"parse_type": "BLOCK_HASH"
}
]
},
{
"name": "EXPERIMENTAL_tx_status",
Expand All @@ -357,7 +371,13 @@
"subscription": false,
"stateful": 0
},
"extra_compute_units": 0
"extra_compute_units": 0,
"parsers": [
{
"parse_path": ".params.tx_hash",
"parse_type": "BLOCK_HASH"
}
]
},
{
"name": "EXPERIMENTAL_receipt",
Expand Down
Loading
Loading