Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mining in Logarithmic Space
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
LOISON Benjamin
Mining in Logarithmic Space
Commits
1acf798e
Unverified
Commit
1acf798e
authored
1 year ago
by
Benjamin Loison
Browse files
Options
Downloads
Patches
Plain Diff
Try to correct correctness of constant difficulty MLS
parent
d56617aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mining_in_logarithmic_space_constant_difficulty.py
+2
-3
2 additions, 3 deletions
mining_in_logarithmic_space_constant_difficulty.py
with
2 additions
and
3 deletions
mining_in_logarithmic_space_constant_difficulty.py
+
2
−
3
View file @
1acf798e
...
...
@@ -4,6 +4,7 @@ import bitcoin
import
json
from
argparser
import
get_parser
import
config
import
copy
# Bitcoin parameters
κ
=
256
...
...
@@ -35,11 +36,9 @@ def Compress(m, k, C, previous_score, previous_ℓ):
return
π
+
χ
,
new_score
,
ℓ
def
uparrow
(
C
,
μ
):
chain
=
[
block
for
block
in
C
if
block
.
level
>=
μ
and
block
.
level_min
<=
μ
]
chain
=
copy
.
deepcopy
(
[
block
for
block
in
C
if
block
.
level
>=
μ
and
block
.
level_min
<=
μ
]
)
for
blockIndex
,
block
in
enumerate
(
chain
):
print
(
'
a
'
,
block
.
level_min
,
μ
)
block
.
level_min
=
μ
print
(
'
b
'
,
chain
[
blockIndex
].
level_min
)
return
chain
# Proceeding by dichotomy may not be worth it.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment