-
Notifications
You must be signed in to change notification settings - Fork 118
feat(zcoin): allow ARRR to sync using a start date #1922
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
Changes from all commits
e7b459b
eefe9d4
7585df2
f260b7a
56621c7
aabd924
0de4fbf
5e4ab78
8e9f78a
3693272
6b33b54
c4b0426
58748d9
b00ee84
7dde1c0
3edb9de
dd55663
bf529d5
0aec022
86e7b50
b7ebdaf
ea2a5f3
d975aeb
5c62f87
4cd0c7c
617d595
a79dff0
4b2b3bb
4f6ee57
cdfa1a5
d360972
ed2279d
2d4eb0e
f5ca4f7
3269c8e
8e2e622
bda9470
f0cc28b
b7ea7df
a0fe7ea
3470c93
de50159
75a807a
ca0dbdc
04b8f6c
1b7c689
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,7 +117,9 @@ jobs: | |
| uses: ./.github/actions/cargo-cache | ||
|
|
||
| - name: Test | ||
| run: cargo test --test 'mm2_tests_main' --no-fail-fast | ||
| run: | | ||
| wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash | ||
| cargo test --test 'mm2_tests_main' --no-fail-fast | ||
|
Comment on lines
+120
to
+122
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sec-review |
||
|
|
||
| # https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#usage-limits | ||
| # https://github.com/KomodoPlatform/atomicDEX-API/actions/runs/4419618128/jobs/7748266141#step:4:1790 | ||
|
|
@@ -161,7 +163,10 @@ jobs: | |
| uses: ./.github/actions/cargo-cache | ||
|
|
||
| - name: Test | ||
| run: cargo test --test 'mm2_tests_main' --no-fail-fast | ||
| run: | | ||
| Invoke-WebRequest -Uri https://github.com/KomodoPlatform/komodo/raw/d456be35acd1f8584e1e4f971aea27bd0644d5c5/zcutil/wget64.exe -OutFile \wget64.exe | ||
| Invoke-WebRequest -Uri https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.bat -OutFile \cmd.bat && \cmd.bat | ||
| cargo test --test 'mm2_tests_main' --no-fail-fast | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sec-review |
||
|
|
||
| docker-tests: | ||
| timeout-minutes: 90 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,6 +142,17 @@ impl BlockDbImpl { | |
|
|
||
| Ok(()) | ||
| } | ||
|
|
||
| pub(crate) async fn get_earliest_block(&self) -> Result<u32, ZcashClientError> { | ||
| Ok(query_single_row( | ||
| &self.db.lock().unwrap(), | ||
| "SELECT MIN(height) from compactblocks", | ||
| [], | ||
| |row| row.get::<_, Option<u32>>(0), | ||
| )? | ||
| .flatten() | ||
| .unwrap_or(0)) | ||
| } | ||
|
Comment on lines
+146
to
+155
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sec-review |
||
| } | ||
|
|
||
| #[cfg(not(target_arch = "wasm32"))] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.