Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
balance_tracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
balance_tracker
Merge requests
!124
Couldn't fetch the linked file.
set GET_DEPTH to 1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
set GET_DEPTH to 1
git-depth
into
develop
Overview
0
Commits
1
Pipelines
3
Changes
2
Merged
Dan Notestein
requested to merge
git-depth
into
develop
3 months ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Compare
version 1
version 2
cf763af7
3 months ago
version 1
1ca54b43
3 months ago
develop (base)
and
version 2
latest version
7fc17f78
1 commit,
3 months ago
version 2
cf763af7
1 commit,
3 months ago
version 1
1ca54b43
1 commit,
3 months ago
Show latest version
1 file
+
15
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
db/process_block_range.sql
+
15
−
4
Options
@@ -89,18 +89,29 @@ BEGIN
--hardforks (60)
WITH
process_block_range_data_b
AS
MATERIALIZED
(
(
SELECT
ov
.
body
AS
body
,
ov
.
body
_binary
::
jsonb
AS
body
,
ov
.
id
AS
source_op
,
ov
.
block_num
as
source_op_block
,
ov
.
op_type_id
FROM
operations_view
ov
WHERE
ov
.
op_type_id
IN
(
40
,
41
,
62
,
32
,
33
,
34
,
59
,
39
,
4
,
20
,
56
,
60
,
52
,
53
,
77
,
70
,
68
,
51
,
63
,
55
)
AND
ov
.
block_num
BETWEEN
_from
AND
_to
),
filter_ops
AS
(
SELECT
ov
.
body
,
ov
.
source_op
,
ov
.
source_op_block
,
ov
.
op_type_id
FROM
process_block_range_data_b
ov
WHERE
(
ov
.
op_type_id
IN
(
40
,
41
,
62
,
32
,
33
,
34
,
59
,
39
,
4
,
20
,
56
,
60
,
52
,
53
,
77
,
70
,
68
)
or
(
ov
.
op_type_id
=
55
and
(
ov
.
body
->
'value'
->>
'is_saved_into_hbd_balance'
)::
BOOLEAN
=
false
)
or
(
ov
.
op_type_id
IN
(
51
,
63
)
and
(
ov
.
body
->
'value'
->>
'payout_must_be_claimed'
)::
BOOLEAN
=
true
))
AND
ov
.
block_num
BETWEEN
_from
AND
_to
),
insert_balance
AS
MATERIALIZED
(
@@ -168,7 +179,7 @@ SELECT
WHEN
pbr
.
op_type_id
=
60
THEN
process_hardfork
(((
pbr
.
body
)
->
'value'
->>
'hardfork_id'
)::
INT
)
END
)
FROM
process_block_range_data_b
pbr
FROM
filter_ops
pbr
ORDER
BY
pbr
.
source_op_block
,
pbr
.
source_op
)
Loading