author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
538,854
06.12.2022 11:43:42
3,600
b9adf83c4aaa7eca7c2041a6f8d5d6162a6e0dc2
add a passive torque in models
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/models/2segments_4dof_2contacts.bioMod", "new_path": "bioptim/examples/getting_started/models/2segments_4dof_2contacts.bioMod", "diff": "@@ -112,3 +112,18 @@ marker Seg1_contact_marker2\nparent Seg1\nposition 0 0.35 0\nendmarke...
Python
MIT License
pyomeca/bioptim
add a passive torque in models
538,854
06.12.2022 11:44:20
3,600
a51deae3ad6edabf53ba596dd08c339738256be6
add passive torque in some dynamic functions
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -80,6 +80,7 @@ class DynamicsFunctions:\nwith_contact: bool,\nrigidbody_dynamics: RigidBodyDynamics,\nfatigue: FatigueList,\n+ with_passive_torque: bool ...
Python
MIT License
pyomeca/bioptim
add passive torque in some dynamic functions
538,854
06.12.2022 14:56:01
3,600
84785cb13cde6985e0079a5fbc377a9e7b33cdb5
added passive torque in all function using tau
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -78,9 +78,9 @@ class DynamicsFunctions:\nparameters: MX.sym,\nnlp,\nwith_contact: bool,\n+ with_passive_torque: bool,\nrigidbody_dynamics: RigidBodyDynam...
Python
MIT License
pyomeca/bioptim
added passive torque in all function using tau
538,854
06.12.2022 15:11:13
3,600
5997d9c57d453fe35ec64d541e996eb6e280c0e2
added passive torque
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -315,7 +315,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nreturn all_pn.nlp.tf\n@staticmethod\n- def qddot_equals_forward_dynamics(_: Constraint, all_pn: Penalt...
Python
MIT License
pyomeca/bioptim
added passive torque
538,854
06.12.2022 16:04:11
3,600
c90cb5d98b5d8cea131897db3a259a0055a5da43
new test for passive torque wip
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test_passive_torque.py", "diff": "+import pytest\n+import re\n+\n+import numpy as np\n+from casadi import MX, SX, vertcat\n+import biorbd_casadi as biorbd\n+from bioptim.dynamics.configure_problem import ConfigureProblem\n+from bioptim.dyn...
Python
MIT License
pyomeca/bioptim
new test for passive torque wip
538,854
08.12.2022 14:11:38
3,600
a26aa031a0479685b4e468710e1f34d06a3c9ce4
corrected Some changes and moving the to_mx()
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -170,10 +170,10 @@ class ConfigureProblem:\nocp,\nnlp,\nwith_contact: bool = False,\n+ with_passive_torque: bool = False,\nrigidbody_dynamics: RigidBodyDyn...
Python
MIT License
pyomeca/bioptim
corrected Some changes and moving the to_mx()
538,854
12.12.2022 11:42:19
3,600
eeb61c9bb7d967746481609503687570fc2abee6
remove of passive torque in forward_dynamics and inverse_dynamics because of redundancy
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -429,7 +429,7 @@ class DynamicsFunctions:\nparameters: MX.sym,\nnlp,\nwith_contact: bool,\n- with_passive_torque: bool,\n+ with_passive_torque: bool = Fa...
Python
MIT License
pyomeca/bioptim
remove of passive torque in forward_dynamics and inverse_dynamics because of redundancy
538,854
12.12.2022 16:35:04
3,600
97552b5a23b92d0717262f0b894b83e58252aa96
Changes Removal of implicit dynamics in this test because they are not necessary
[ { "change_type": "MODIFY", "old_path": "tests/test_passive_torque.py", "new_path": "tests/test_passive_torque.py", "diff": "@@ -25,11 +25,16 @@ class OptimalControlProgram:\n@pytest.mark.parametrize(\"cx\", [MX, SX])\n-@pytest.mark.parametrize(\"with_passive_torque\", [False, True])\n+@pytest.mark.p...
Python
MIT License
pyomeca/bioptim
Changes Removal of implicit dynamics in this test because they are not necessary
538,854
12.12.2022 16:37:03
3,600
34634bbf49ec2db7fb3c5d2a5fcf4be77d9c675b
New test for passive_torque Simple example of ocp to test passive torque in DAE_INVERSE_DYNAMICS and DAE_FORWARD_DYNAMICS
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test ocp_passive_torque.py", "diff": "+import numpy as np\n+from casadi import MX, SX, vertcat\n+import biorbd_casadi as biorbd\n+from bioptim.dynamics.configure_problem import ConfigureProblem\n+from bioptim.dynamics.dynamics_functions im...
Python
MIT License
pyomeca/bioptim
New test for passive_torque Simple example of ocp to test passive torque in DAE_INVERSE_DYNAMICS and DAE_FORWARD_DYNAMICS
538,854
12.12.2022 16:39:38
3,600
2bcf3f09f7922d386ab65727fcc5acbf0e6fc6bc
modified pendulum In order to shape with the test ocp passive torque
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/models/pendulum.bioMod", "new_path": "bioptim/examples/getting_started/models/pendulum.bioMod", "diff": "@@ -26,3 +26,18 @@ endsegment\nparent Seg1\nposition -0.0005 0.0688 -0.9542\nendmarker\n+\n+passivetorque Seg1\n+ type exp...
Python
MIT License
pyomeca/bioptim
modified pendulum In order to shape with the test ocp passive torque
538,854
13.12.2022 11:32:25
3,600
917a5a33d284175c391a623a19b54ad14476eafa
remove of passive torque in pendulum example
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/models/pendulum.bioMod", "new_path": "bioptim/examples/getting_started/models/pendulum.bioMod", "diff": "@@ -27,17 +27,3 @@ endsegment\nposition -0.0005 0.0688 -0.9542\nendmarker\n-passivetorque Seg1\n- type exponential\n- dof ...
Python
MIT License
pyomeca/bioptim
remove of passive torque in pendulum example
538,854
13.12.2022 15:23:25
3,600
4eba35a8938dc7553720bb9b9e9a875ecf54b792
update passive torque
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -114,7 +114,7 @@ class DynamicsFunctions:\ndq = DynamicsFunctions.compute_qdot(nlp, q, qdot)\n- passive_torque = nlp.model.passiveJointTorque(q, qdot).to...
Python
MIT License
pyomeca/bioptim
update passive torque
538,854
15.12.2022 09:41:42
3,600
612867e5fee80f30efac0af7e5c7893e6e89cec7
PR passive torque
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -410,7 +410,7 @@ class ConfigureProblem:\nnlp,\nDynamicsFunctions.torque_activations_driven,\nwith_contact=with_contact,\n- with_passive_torque=with_passiv...
Python
MIT License
pyomeca/bioptim
PR passive torque
538,854
15.12.2022 15:27:50
3,600
f0d4cfccf10a6b15611189f6acfd0d706b65254f
updated passive torque
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -114,9 +114,8 @@ class DynamicsFunctions:\ndq = DynamicsFunctions.compute_qdot(nlp, q, qdot)\n- passive_torque = nlp.model.passive_joint_torque(q, qdot)\...
Python
MIT License
pyomeca/bioptim
updated passive torque
538,842
05.01.2023 13:24:00
18,000
1f9ff28bcef42fcbfb82abd5b789e6f8cd818f4f
Update README.md continuous integration badge
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -14,7 +14,7 @@ It interfaces the robust [`Ipopt`](https://github.com/coin-or/Ipopt) and the fas\n| Type | Status |\n|---|---|\n| License | <a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.s...
Python
MIT License
pyomeca/bioptim
Update README.md continuous integration badge
538,848
19.01.2023 13:39:25
18,000
f488cf9d5a66a49792dcc111c43d61b6f3d56d3e
Removed CONTACT_FORCE
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1127,14 +1127,9 @@ The extra parameter `axis_to_track: Axis = (Axis.X, Axis.Y, Axis.Z)` can be sent\nConstraints the linear momentum towards a target.\nThe extra parameter `axis_to_track: Axis = (Axis.X, Axis.Y...
Python
MIT License
pyomeca/bioptim
Removed CONTACT_FORCE
538,848
19.01.2023 13:51:42
18,000
d88cead92b6c6992376a0f8b688c6b31c88c14c7
Fixed docstring in Mapping
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/mapping.py", "new_path": "bioptim/misc/mapping.py", "diff": "@@ -12,7 +12,7 @@ class Mapping(OptionGeneric):\nMapping of index set to a different index set\nExample of use:\n- - to_map = Mapping([0, 1, 1, 3, -1, 1], [3])\n+ - to_map = Mapping([0, ...
Python
MIT License
pyomeca/bioptim
Fixed docstring in Mapping
538,854
26.01.2023 10:13:29
3,600
6424e6d281a5b65bd819ff341faf0e65b9f15ce4
add an error if the type of the model path is not correct
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/biorbd_model.py", "new_path": "bioptim/interfaces/biorbd_model.py", "diff": "@@ -9,8 +9,10 @@ class BiorbdModel:\ndef __init__(self, bio_model: str | biorbd.Model):\nif isinstance(bio_model, str):\nself.model = biorbd.Model(bio_model)\n- els...
Python
MIT License
pyomeca/bioptim
add an error if the type of the model path is not correct
538,845
30.01.2023 16:59:06
18,000
cc31341773e97d411323693ffe69e4a7912c8cb0
Correct bug with bioviz version
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1341,7 +1341,7 @@ class Solution:\nfrom ..interfaces.biorbd_model import BiorbdModel\n- check_version(bioviz, \"2.1.0\", \"2.3.0\")\n+ check_version(bioviz, \"2.3.0...
Python
MIT License
pyomeca/bioptim
Correct bug with bioviz version
538,845
07.02.2023 10:15:28
18,000
d1cd12429b7113735d52ee07fe7c11194984d494
np.ndarray adapt "np.array" to "np.ndarray"
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -582,7 +582,7 @@ In the case of a multiphase optimization, one model per phase should be passed i\n`constraints` is the constraint set of the ocp (see The constraints section)\n`parameters` is the parameter set ...
Python
MIT License
pyomeca/bioptim
np.ndarray adapt "np.array" to "np.ndarray"
127,837
02.04.2020 21:27:14
25,200
d05e5379b38feafe1f255dbf3dfaa997a0ab64f7
Small config and documentation tweaks: Rename SERVER_ADDR to SERVER_URL. SERVER_URL, LOG_TRANSACTIONS & LOG_BENCHMARKS can be set from env or make var. noun -> verb: make validator -> make validate. Update docs.
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": ".PHONY: deps lint test add-license check-license circleci-local validator \\\nwatch-blocks view-block-benchmarks view-account-benchmarks salus\nLICENCE_SCRIPT=addlicense -c \"Coinbase, Inc.\" -l \"apache\" -v\n-SERVE...
Go
Apache License 2.0
coinbase/rosetta-cli
Small config and documentation tweaks: - Rename SERVER_ADDR to SERVER_URL. - SERVER_URL, LOG_TRANSACTIONS & LOG_BENCHMARKS can be set from env or make var. - noun -> verb: make validator -> make validate. - Update docs.
127,814
07.04.2020 11:44:36
25,200
dde2d70e95a2d486e9de4c2a07d6a4f66fabe1f3
Ensure genesis block is properly synced
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "validator-data\n+rosetta-validator\n" }, { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -32,6 +32,7 @@ salus:\nvalidate:\ndocker build -t rosetta-valida...
Go
Apache License 2.0
coinbase/rosetta-cli
Ensure genesis block is properly synced
127,814
07.04.2020 11:54:30
25,200
480cf5316eafe94362602622e0cb64c7f78f0996
Ensure genesis block cannot be orphaned
[ { "change_type": "MODIFY", "old_path": "internal/syncer/syncer.go", "new_path": "internal/syncer/syncer.go", "diff": "@@ -275,9 +275,11 @@ func (s *Syncer) ProcessBlock(\n}\n// SyncBlockRange syncs blocks from startIndex to endIndex, inclusive.\n-// This function handles re-orgs that may occur while...
Go
Apache License 2.0
coinbase/rosetta-cli
Ensure genesis block cannot be orphaned
127,814
07.04.2020 12:42:44
25,200
281a62770032f064542567315eb09ba87ae915d1
Fix genesis orphan
[ { "change_type": "MODIFY", "old_path": "internal/syncer/syncer.go", "new_path": "internal/syncer/syncer.go", "diff": "@@ -220,6 +220,7 @@ func (s *Syncer) AddBlock(\n// head should be orphaned.\nfunc (s *Syncer) ProcessBlock(\nctx context.Context,\n+ genesisIndex int64,\ncurrIndex int64,\nblock *ros...
Go
Apache License 2.0
coinbase/rosetta-cli
Fix genesis orphan
127,814
07.04.2020 13:00:13
25,200
465591b856928aaa5cf1d1b6dfbff3f18622a8e0
Add tests for nextSyncableRange
[ { "change_type": "MODIFY", "old_path": "internal/syncer/syncer_test.go", "new_path": "internal/syncer/syncer_test.go", "diff": "@@ -247,6 +247,9 @@ var (\nGenesisBlockIdentifier: &rosetta.BlockIdentifier{\nIndex: 0,\n},\n+ CurrentBlockIdentifier: &rosetta.BlockIdentifier{\n+ Index: 1000,\n+ },\n},\n...
Go
Apache License 2.0
coinbase/rosetta-cli
Add tests for nextSyncableRange
127,814
07.04.2020 14:04:05
25,200
b268a50088728d5c177fd766c5346cd8e6721636
Add ability to bootstrap balances in genesis
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -4,6 +4,7 @@ LICENCE_SCRIPT=addlicense -c \"Coinbase, Inc.\" -l \"apache\" -v\nSERVER_URL?=http://localhost:10000\nLOG_TRANSACTIONS?=false\nLOG_BENCHMARKS?=true\n+BOOTSTRAP_BALANCES?=false\ndeps:\ngo get ./...\n@@...
Go
Apache License 2.0
coinbase/rosetta-cli
Add ability to bootstrap balances in genesis
127,814
07.04.2020 14:17:34
25,200
34b7591425b12f06363926de3ee3d9abd40d9d66
Update readme to mention bootstrap functionality
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -18,11 +18,6 @@ and wallets to integrate with much less communication overhead\nand network-specific work.\n## Run the Validator\n-\n-The validator needs the URL of the Rosetta server configured. This can be set...
Go
Apache License 2.0
coinbase/rosetta-cli
Update readme to mention bootstrap functionality
127,814
07.04.2020 15:48:01
25,200
c7acdd86a576137ae31977c955607fa3f522fe6c
Add test for bootstrapping balances
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -35,32 +35,6 @@ import (\n\"github.com/davecgh/go-spew/spew\"\n)\n-var (\n- // ErrHeadBlockNotFound is returned when there is no\n- // head block found in BlockSto...
Go
Apache License 2.0
coinbase/rosetta-cli
Add test for bootstrapping balances
127,814
08.04.2020 11:49:17
25,200
b51a657b99d2ee522d6dc8f2d740d6ec52a4e679
Initial pass at streaming balance changes
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -4,6 +4,7 @@ LICENCE_SCRIPT=addlicense -c \"Coinbase, Inc.\" -l \"apache\" -v\nSERVER_URL?=http://localhost:10000\nLOG_TRANSACTIONS?=true\nLOG_BENCHMARKS?=false\n+LOG_BALANCES?=true\nBOOTSTRAP_BALANCES?=false\ndep...
Go
Apache License 2.0
coinbase/rosetta-cli
Initial pass at streaming balance changes
127,814
08.04.2020 15:00:16
25,200
03701269e09ccd15689badb5185bcb185e32c043
Increase test coverage block storage
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage_test.go", "new_path": "internal/storage/block_storage_test.go", "diff": "@@ -356,10 +356,16 @@ func TestBalance(t *testing.T) {\nHash: \"kdasdj\",\nIndex: 123890,\n}\n+ newTransaction = &rosetta.TransactionIdentifier{\n+ Hash: \"...
Go
Apache License 2.0
coinbase/rosetta-cli
Increase test coverage block storage
127,814
08.04.2020 16:51:00
25,200
a8bbed6028d5ac6b145baa212415012da7192d50
Log reconciliation
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "-.PHONY: deps lint test add-license check-license circleci-local validator \\\n- watch-blocks view-block-benchmarks view-account-benchmarks salus\n+.PHONY: deps lint format check-format test test-cover add-license \\...
Go
Apache License 2.0
coinbase/rosetta-cli
Log reconciliation
127,814
09.04.2020 08:56:34
25,200
6bc2020a5efb1b29b77e9b7e8435a0cb766f519e
Add gocritic to linting
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -21,7 +21,7 @@ deps:\nlint:\ngolangci-lint run -v \\\n- -E golint,misspell,gocyclo,whitespace,goconst,gocognit,bodyclose,unconvert,lll,unparam,gomnd\n+ -E golint,misspell,gocyclo,whitespace,goconst,gocritic,gocogn...
Go
Apache License 2.0
coinbase/rosetta-cli
Add gocritic to linting
127,814
15.04.2020 12:54:46
25,200
e92ea2e3b905afe426588d75800fd34b407999a3
Update to rosetta-sdk-go v0.1.4
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -11,6 +11,7 @@ LOG_BENCHMARKS?=false\nLOG_BALANCES?=true\nLOG_RECONCILIATION?=true\nBOOTSTRAP_BALANCES?=false\n+RECONCILE_BALANCES?=true\ndeps:\ngo get ./...\n@@ -65,6 +66,7 @@ validate:\n-e LOG_BALANCES=\"${LOG_B...
Go
Apache License 2.0
coinbase/rosetta-cli
Update to rosetta-sdk-go v0.1.4
127,814
17.04.2020 22:45:40
25,200
dae6601615a96483aaf95df92531b666cab8b9cb
Start from previous block
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -12,6 +12,7 @@ LOG_BALANCES?=true\nLOG_RECONCILIATION?=true\nBOOTSTRAP_BALANCES?=false\nRECONCILE_BALANCES?=true\n+NEW_HEAD_INDEX?=-1\ndeps:\ngo get ./...\n@@ -67,6 +68,7 @@ validate:\n-e LOG_RECONCILIATION=\"${LO...
Go
Apache License 2.0
coinbase/rosetta-cli
Start from previous block
127,814
17.04.2020 23:42:17
25,200
1ac9d97e0d2f87e415700e27761a4dfc64747fde
Lookup balance by block
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -13,6 +13,7 @@ LOG_RECONCILIATION?=true\nBOOTSTRAP_BALANCES?=false\nRECONCILE_BALANCES?=true\nNEW_HEAD_INDEX?=-1\n+LOOKUP_BALANCE_BY_BLOCK?=true\ndeps:\ngo get ./...\n@@ -69,6 +70,7 @@ validate:\n-e BOOTSTRAP_BALA...
Go
Apache License 2.0
coinbase/rosetta-cli
Lookup balance by block
127,814
19.04.2020 14:41:24
25,200
5263848b23f815e8832755304750999fc1df2b79
Break apart syncer with a end block handler
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -7,7 +7,6 @@ TEST_SCRIPT=go test -v ./internal/...\nSERVER_URL?=http://localhost:8080\nLOG_TRANSACTIONS?=true\n-LOG_BENCHMARKS?=false\nLOG_BALANCES?=true\nLOG_RECONCILIATION?=true\nBOOTSTRAP_BALANCES?=false\n@@ -6...
Go
Apache License 2.0
coinbase/rosetta-cli
Break apart syncer with a end block handler
127,814
19.04.2020 15:52:53
25,200
cd82d5518275aeb6de240a2b014646d92bfab331
Cobra migration
[ { "change_type": "DELETE", "old_path": "Dockerfile", "new_path": null, "diff": "-# Copyright 2020 Coinbase, Inc.\n-#\n-# Licensed under the Apache License, Version 2.0 (the \"License\");\n-# you may not use this file except in compliance with the License.\n-# You may obtain a copy of the License at\...
Go
Apache License 2.0
coinbase/rosetta-cli
Cobra migration
127,814
20.04.2020 09:23:27
25,200
5eb35fdd64f8724cdc9305a511fdd36730da6c79
First pass at stateless syncer
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -58,11 +58,12 @@ func init() {\n}\ncheckCompleteCmd.Flags().Int64Var(\n- &NewHeadIndex,\n+ &StartIndex,\n\"start-index\",\n-1,\n\"start reconciliation from some already processed block in...
Go
Apache License 2.0
coinbase/rosetta-cli
First pass at stateless syncer
127,814
20.04.2020 11:32:52
25,200
9157a313a3eb9df5eda9d703e9f97b2aa0e4cf18
First pass at stateless reconciler
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -36,7 +36,7 @@ var (\nLong: `Fetch each block and check that reconciles, no duplicates,\nresponses correct, etc. Handles re-orgs.\n`,\n- Run: runcheckCompleteCmd,\n+ Run: runCheckComplete...
Go
Apache License 2.0
coinbase/rosetta-cli
First pass at stateless reconciler
127,814
20.04.2020 13:51:29
25,200
eea13dc96db358ad16a6b2037aae0dc2b3b5f465
Optionally continue on reconciliation error
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -111,6 +111,7 @@ func runCheckCompleteCmd(cmd *cobra.Command, args []string) {\nlogger,\nAccountConcurrency,\nLookupBalanceByBlock,\n+ HaltOnReconciliationError,\n)\ng.Go(func() error {\n...
Go
Apache License 2.0
coinbase/rosetta-cli
Optionally continue on reconciliation error
127,814
20.04.2020 14:40:44
25,200
5a0cc39e2b2a9ed253ac755ac682cb7cbea7eec0
Cancel context if finish syncing
[ { "change_type": "MODIFY", "old_path": "cmd/check_quick.go", "new_path": "cmd/check_quick.go", "diff": "@@ -37,7 +37,7 @@ func init() {\n}\nfunc runCheckQuickCmd(cmd *cobra.Command, args []string) {\n- ctx := context.Background()\n+ ctx, cancel := context.WithCancel(context.Background())\nfetcher :=...
Go
Apache License 2.0
coinbase/rosetta-cli
Cancel context if finish syncing
127,814
20.04.2020 16:29:11
25,200
eec019a88adbb922fd2b235cccaf812b67f1b944
Fix balance calculation bug
[ { "change_type": "MODIFY", "old_path": "cmd/check_quick.go", "new_path": "cmd/check_quick.go", "diff": "+// Copyright 2020 Coinbase, Inc.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obt...
Go
Apache License 2.0
coinbase/rosetta-cli
Fix balance calculation bug
127,814
20.04.2020 17:05:08
25,200
555ff990f576dbcc9f2f31db15f8ef4169860056
Create syncer interface
[ { "change_type": "MODIFY", "old_path": "internal/syncer/stateful_syncer.go", "new_path": "internal/syncer/stateful_syncer.go", "diff": "@@ -16,27 +16,17 @@ package syncer\nimport (\n\"context\"\n- \"encoding/json\"\n\"errors\"\n\"fmt\"\n\"log\"\n- \"math/big\"\n\"time\"\n\"github.com/coinbase/rosett...
Go
Apache License 2.0
coinbase/rosetta-cli
Create syncer interface
127,814
20.04.2020 18:22:09
25,200
999ca0bfb0bf9d6911963d0b8847084edb52bbaa
Tests passing after syncer rework
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "validator-data\nrosetta-validator\n+bootstrap_balances.csv\n" }, { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -47,13 +47,6 @...
Go
Apache License 2.0
coinbase/rosetta-cli
Tests passing after syncer rework
127,814
21.04.2020 08:55:02
25,200
f4231c64fafb5f340372886e057b643071e299be
Minimize syncer interface
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -28,6 +28,35 @@ not a single binary.\n4. Watch for errors in the processing logs. Any error will cause validation to\nstop.\n+## TODO\n+```\n+A simple CLI to interact with a Rosetta server\n+\n+Usage:\n+ rosetta...
Go
Apache License 2.0
coinbase/rosetta-cli
Minimize syncer interface
127,814
21.04.2020 10:12:42
25,200
1e9c7c9d5efdc29c0ab7b6542a507c6cd0ca7110
Update CMD tooling descriptions
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -48,15 +48,3 @@ build:\ninstall:\ngo install ./...\n-\n-watch-blocks:\n- tail -f ${PWD}/validator-data/blocks.txt\n-\n-watch-transactions:\n- tail -f ${PWD}/validator-data/transactions.txt\n-\n-watch-balances:\n- ...
Go
Apache License 2.0
coinbase/rosetta-cli
Update CMD tooling descriptions
127,814
26.04.2020 09:43:03
25,200
9430dc60078c56557265e53a916eda55ca2dad07
Change defaults for logging
[ { "change_type": "MODIFY", "old_path": "cmd/root.go", "new_path": "cmd/root.go", "diff": "@@ -125,25 +125,25 @@ func init() {\nrootCmd.PersistentFlags().BoolVar(\n&LogBlocks,\n\"log-blocks\",\n- true,\n+ false,\n\"log processed blocks\",\n)\nrootCmd.PersistentFlags().BoolVar(\n&LogTransactions,\n\"l...
Go
Apache License 2.0
coinbase/rosetta-cli
Change defaults for logging
127,814
26.04.2020 09:43:40
25,200
98ba6ddb06339660372c2faa80b2626ee94a4eef
Naive account checking
[ { "change_type": "ADD", "old_path": null, "new_path": "cmd/check_account.go", "diff": "+// Copyright 2020 Coinbase, Inc.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the...
Go
Apache License 2.0
coinbase/rosetta-cli
Naive account checking
127,814
26.04.2020 16:10:28
25,200
2b6f0f89582e8ae5011192c3ac76fdb869b8e4c9
Bootstrap using JSON instead of CSV
[ { "change_type": "DELETE", "old_path": "examples/bootstrap_balances.csv", "new_path": null, "diff": "-AccountIdentifier_address,Amount_value,Currency_symbol,Currency_decimals\n-1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa,5000000000,BTC,8\n" }, { "change_type": "ADD", "old_path": null, "new_pa...
Go
Apache License 2.0
coinbase/rosetta-cli
Bootstrap using JSON instead of CSV
127,814
26.04.2020 17:45:38
25,200
d098a6cedfba1632b2e48d7c8cb3da8ee8ae820b
Move check:account into reconciler
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -33,11 +33,12 @@ Usage:\nrosetta-validator [command]\nAvailable Commands:\n+ check:account Debug inactive reconciliation errors for a group of accounts\ncheck:complete Run a full check of the correctness of a Ro...
Go
Apache License 2.0
coinbase/rosetta-cli
Move check:account into reconciler
127,814
28.04.2020 14:27:42
25,200
88fb127cd03fc1e2ff218f92462a5469689feabf
Add support for providing an ExemptFile
[ { "change_type": "MODIFY", "old_path": "cmd/root.go", "new_path": "cmd/root.go", "diff": "@@ -71,6 +71,10 @@ var (\n// It can be beneficial to collect all reconciliation errors\n// during development.\nHaltOnReconciliationError bool\n+\n+ // ExemptFile is an absolute path to a file listing all accou...
Go
Apache License 2.0
coinbase/rosetta-cli
Add support for providing an ExemptFile
127,814
28.04.2020 15:45:47
25,200
82ac25290eb2782afda0c2ba623f987ae058e3f7
Skip balance changes for account
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -40,6 +40,9 @@ Flags:\n--block-concurrency uint concurrency to use while fetching blocks (default 8)\n--data-dir string folder used to store logs and any data used to perform validation (default \"./validator-da...
Go
Apache License 2.0
coinbase/rosetta-cli
Skip balance changes for account
127,814
28.04.2020 18:08:10
25,200
16ff25a85d4f0e9635ac28920d4fb084c1fbbcfc
First pass at sophistacted inactive reconciliation
[ { "change_type": "MODIFY", "old_path": "internal/reconciler/stateful_reconciler.go", "new_path": "internal/reconciler/stateful_reconciler.go", "diff": "@@ -19,7 +19,7 @@ import (\n\"errors\"\n\"fmt\"\n\"log\"\n- \"math/rand\"\n+ \"sync\"\n\"time\"\n\"github.com/coinbase/rosetta-cli/internal/logger\"...
Go
Apache License 2.0
coinbase/rosetta-cli
First pass at sophistacted inactive reconciliation
127,814
30.04.2020 13:15:54
25,200
baa79071415bb8a5897eaefa0bd3d733ad05c12e
Extend retry time
[ { "change_type": "MODIFY", "old_path": "cmd/check_account.go", "new_path": "cmd/check_account.go", "diff": "@@ -78,6 +78,7 @@ func runCheckAccountCmd(cmd *cobra.Command, args []string) {\nServerURL,\nfetcher.WithBlockConcurrency(BlockConcurrency),\nfetcher.WithTransactionConcurrency(TransactionConcu...
Go
Apache License 2.0
coinbase/rosetta-cli
Extend retry time
127,814
01.05.2020 08:58:21
25,200
6157d882a65fe921f9bbcff95f6bbb88938782e9
Gracefully handle no head block in inactive reconciler
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -24,7 +24,7 @@ import (\n\"github.com/coinbase/rosetta-cli/internal/syncer\"\n\"github.com/coinbase/rosetta-sdk-go/fetcher\"\n-\n+ \"github.com/pkg/errors\"\n\"github.com/spf13/cobra\"\n\...
Go
Apache License 2.0
coinbase/rosetta-cli
Gracefully handle no head block in inactive reconciler
127,814
01.05.2020 09:18:05
25,200
fbd4a53f151216e3cf114bdbb08a37c3d22e117f
Use native error wrapping
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -24,7 +24,6 @@ import (\n\"github.com/coinbase/rosetta-cli/internal/syncer\"\n\"github.com/coinbase/rosetta-sdk-go/fetcher\"\n- \"github.com/pkg/errors\"\n\"github.com/spf13/cobra\"\n\"go...
Go
Apache License 2.0
coinbase/rosetta-cli
Use native error wrapping
127,814
03.05.2020 14:03:27
25,200
29399aefd63141c286cfd341d4bdc8102067429f
Separate blockProcessed into blockAdded and blockRemoved
[ { "change_type": "MODIFY", "old_path": "internal/syncer/base_handler.go", "new_path": "internal/syncer/base_handler.go", "diff": "@@ -46,22 +46,17 @@ func NewBaseHandler(\n}\n}\n-// BlockProcessed is called by the syncer after each\n-// block is processed.\n-// TODO: refactor to BlockAdded and Block...
Go
Apache License 2.0
coinbase/rosetta-cli
Separate blockProcessed into blockAdded and blockRemoved
127,814
04.05.2020 11:51:39
25,200
54d6d9cc0174f038959a686b547d8f1160741883
Remove logger dependency from reconciler
[ { "change_type": "MODIFY", "old_path": "internal/reconciler/reconciler.go", "new_path": "internal/reconciler/reconciler.go", "diff": "@@ -25,7 +25,6 @@ import (\n// TODO: remove all references to internal packages\n// before transitioning to rosetta-sdk-go\n- \"github.com/coinbase/rosetta-cli/intern...
Go
Apache License 2.0
coinbase/rosetta-cli
Remove logger dependency from reconciler
127,814
04.05.2020 12:03:09
25,200
433aa06599e63941959badc7bca213f60cede0fd
Removed reconciler dependency on storage
[ { "change_type": "MODIFY", "old_path": "internal/logger/logger.go", "new_path": "internal/logger/logger.go", "diff": "@@ -21,7 +21,7 @@ import (\n\"os\"\n\"path\"\n- \"github.com/coinbase/rosetta-cli/internal/storage\"\n+ \"github.com/coinbase/rosetta-cli/internal/reconciler\"\n\"github.com/coinbase...
Go
Apache License 2.0
coinbase/rosetta-cli
Removed reconciler dependency on storage
127,814
04.05.2020 13:57:08
25,200
a2a056f27f6508662569f49363e478443d047270
Resolve most errors in cmd
[ { "change_type": "DELETE", "old_path": "cmd/check_account.go", "new_path": null, "diff": "-// Copyright 2020 Coinbase, Inc.\n-//\n-// Licensed under the Apache License, Version 2.0 (the \"License\");\n-// you may not use this file except in compliance with the License.\n-// You may obtain a copy of ...
Go
Apache License 2.0
coinbase/rosetta-cli
Resolve most errors in cmd
127,814
04.05.2020 14:29:10
25,200
cddba758872635b946baaaa494582c4050079c00
Fix block storage tests
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -111,6 +111,7 @@ func runCheckCompleteCmd(cmd *cobra.Command, args []string) {\nlog.Fatal(fmt.Errorf(\"%w: unable to initialize asserter\", err))\n}\n+ // TODO: if DataDir is empty, use T...
Go
Apache License 2.0
coinbase/rosetta-cli
Fix block storage tests
127,814
04.05.2020 20:46:43
25,200
86043e12f9549905c994363d0dc277afb9e66afa
Implement all processors
[ { "change_type": "MODIFY", "old_path": "cmd/check_complete.go", "new_path": "cmd/check_complete.go", "diff": "@@ -85,7 +85,6 @@ at the examples directory for an example of how to structure this file.`,\n}\nfunc runCheckCompleteCmd(cmd *cobra.Command, args []string) {\n- // TODO: if no directory pass...
Go
Apache License 2.0
coinbase/rosetta-cli
Implement all processors
127,814
04.05.2020 21:30:56
25,200
124cdd5fe3503ff37f21fca636f196e9cd66576a
Reconciler tests
[ { "change_type": "MODIFY", "old_path": "internal/reconciler/reconciler.go", "new_path": "internal/reconciler/reconciler.go", "diff": "@@ -113,11 +113,6 @@ type ReconcilerHelper interface {\nctx context.Context,\n) (*types.BlockIdentifier, error)\n- // always compare current balance...just need to se...
Go
Apache License 2.0
coinbase/rosetta-cli
Reconciler tests
127,814
04.05.2020 21:41:49
25,200
f9fb25edb6d2d5a919da688f78638766f9eb4b88
Add BalanceChanges test
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage_test.go", "new_path": "internal/storage/block_storage_test.go", "diff": "@@ -27,6 +27,7 @@ import (\n\"github.com/coinbase/rosetta-cli/internal/reconciler\"\n\"github.com/coinbase/rosetta-cli/internal/utils\"\n+ \"github.com/coin...
Go
Apache License 2.0
coinbase/rosetta-cli
Add BalanceChanges test
127,814
04.05.2020 22:50:11
25,200
38edbbb2578a54aa5a5e50dce948b1dad649ef0c
Add syncer tests
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -329,6 +329,12 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\n}\n}\n+ if StartIndex != -1 {\n+ if err = blockStorage.SetNewStartIndex(ctx, StartIndex); err != nil {\n+ log.Fatal(fmt.Errorf(\"%w:...
Go
Apache License 2.0
coinbase/rosetta-cli
Add syncer tests
127,814
05.05.2020 08:34:37
25,200
4fcbad6fa1167d344550a96aa309f489e1300d96
Set head block on store/remove
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -361,6 +361,10 @@ func (b *BlockStorage) StoreBlock(\n}\n}\n+ if err = b.StoreHeadBlockIdentifier(ctx, transaction, block.BlockIdentifier); err != nil {\n+ return ...
Go
Apache License 2.0
coinbase/rosetta-cli
Set head block on store/remove
127,814
05.05.2020 09:38:34
25,200
0425ad7707b5b528330654027722ab845f9f554d
Handle GetAccount when syncing from arbitrary height
[ { "change_type": "MODIFY", "old_path": "internal/processor/reconciler_helper.go", "new_path": "internal/processor/reconciler_helper.go", "diff": "@@ -47,6 +47,7 @@ func (h *ReconcilerHelper) AccountBalance(\nctx context.Context,\naccount *types.AccountIdentifier,\ncurrency *types.Currency,\n+ headBl...
Go
Apache License 2.0
coinbase/rosetta-cli
Handle GetAccount when syncing from arbitrary height
127,814
05.05.2020 10:03:50
25,200
75945cbeba9435a899a873685c61aa42611665ba
Fix set new start index
[ { "change_type": "MODIFY", "old_path": "internal/reconciler/reconciler.go", "new_path": "internal/reconciler/reconciler.go", "diff": "@@ -178,6 +178,7 @@ func NewReconciler(\naccountConcurrency uint64,\nlookupBalanceByBlock bool,\ninterestingAccounts []*AccountCurrency,\n+ // TODO: load seenAccts an...
Go
Apache License 2.0
coinbase/rosetta-cli
Fix set new start index
127,814
05.05.2020 10:38:29
25,200
d260ff2b139740d1eee22fc6e855c79f2accbe34
Add util for account string
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "watch-transactions watch-balances watch-reconciliations \\\nview-block-benchmarks view-account-benchmarks\nLICENCE_SCRIPT=addlicense -c \"Coinbase, Inc.\" -l \"apache\" -v\n+GO_INSTALL=GO111MODULE=off go get\nTEST_SC...
Go
Apache License 2.0
coinbase/rosetta-cli
Add util for account string
127,814
05.05.2020 10:57:20
25,200
59179e1f9a1608f40ff9b3f8416a82ffd47053bf
Stage rest of changes for PR
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -17,6 +17,14 @@ in this specification will enable exchanges, block explorers,\nand wallets to integrate with much less communication overhead\nand network-specific work.\n+\n+## TODO:\n+* Load block cache on res...
Go
Apache License 2.0
coinbase/rosetta-cli
Stage rest of changes for PR
127,814
05.05.2020 12:22:52
25,200
aa9ba2589d24455e652f99bbf0aaccbe807c37d4
[WIP] Add view commands
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -20,9 +20,12 @@ and network-specific work.\n## TODO:\n* Load block cache on restart from storage (to ensure reorgs are handled correctly)\n-* Persist seen account balances and account balance queue across restar...
Go
Apache License 2.0
coinbase/rosetta-cli
[WIP] Add view commands
127,814
05.05.2020 14:04:55
25,200
9ab99d7c65de67e22cba13944231a434dfd6e4b9
Add create spec command
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -23,10 +23,11 @@ and network-specific work.\n* Persist seen account balances and account balance queue across restarts (this allows inactive reconciliation to continue across restarts)\n! Add ability to view a b...
Go
Apache License 2.0
coinbase/rosetta-cli
Add create spec command
127,814
06.05.2020 14:45:46
25,200
d280df99e0783d4c87c12018671d9f1eb75353a6
Update to rosetta-sdk-go v0.1.7
[ { "change_type": "MODIFY", "old_path": "go.mod", "new_path": "go.mod", "diff": "@@ -3,7 +3,7 @@ module github.com/coinbase/rosetta-cli\ngo 1.13\nrequire (\n- github.com/coinbase/rosetta-sdk-go v0.1.6\n+ github.com/coinbase/rosetta-sdk-go v0.1.7\ngithub.com/davecgh/go-spew v1.1.1\ngithub.com/dgraph-i...
Go
Apache License 2.0
coinbase/rosetta-cli
Update to rosetta-sdk-go v0.1.7
127,814
06.05.2020 15:20:41
25,200
4b6f978a8e4d7c88e16fcf036682cbf31b33fe39
Fill syncer cache on restart (if possible)
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -19,15 +19,11 @@ and network-specific work.\n## TODO:\n-* Load block cache on restart from storage (to ensure reorgs are handled correctly)\n-* Persist seen account balances and account balance queue across rest...
Go
Apache License 2.0
coinbase/rosetta-cli
Fill syncer cache on restart (if possible)
127,814
06.05.2020 15:49:06
25,200
dac1e3598e1549ce49a3dcdd634ff046fdf7a9cb
Use BlockIdentifier for remove block
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -367,10 +367,10 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\n// If previously processed blocks exist in storage, they are fetched.\n// Otherwise, none are provided to the cache (the syncer wil...
Go
Apache License 2.0
coinbase/rosetta-cli
Use BlockIdentifier for remove block
127,814
06.05.2020 16:06:41
25,200
360392dcf422d72270ad39b02af92c0440fd08da
Return an error if trying to start at block ahead of state store
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -419,6 +419,10 @@ func (b *BlockStorage) SetNewStartIndex(\nreturn err\n}\n+ if head.Index < startIndex {\n+ return fmt.Errorf(\"last processed block %d is less th...
Go
Apache License 2.0
coinbase/rosetta-cli
Return an error if trying to start at block ahead of state store
127,814
06.05.2020 21:08:07
25,200
49d95dc7335dda8f3549edf3f14a967d50a1f805
Update to use rosetta-sdk-go v0.1.8
[ { "change_type": "MODIFY", "old_path": "go.mod", "new_path": "go.mod", "diff": "@@ -3,7 +3,7 @@ module github.com/coinbase/rosetta-cli\ngo 1.13\nrequire (\n- github.com/coinbase/rosetta-sdk-go v0.1.7\n+ github.com/coinbase/rosetta-sdk-go v0.1.8\ngithub.com/davecgh/go-spew v1.1.1\ngithub.com/dgraph-i...
Go
Apache License 2.0
coinbase/rosetta-cli
Update to use rosetta-sdk-go v0.1.8
127,814
12.05.2020 12:51:04
25,200
3c6d5e9c8421d14993dd2fe2d34db7a70983f8c0
Use rosetta-sdk-go syncer and reconciler
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -25,12 +25,12 @@ import (\n\"github.com/coinbase/rosetta-cli/internal/logger\"\n\"github.com/coinbase/rosetta-cli/internal/processor\"\n- \"github.com/coinbase/rosetta-cli/internal/reconciler\"\n\"github.c...
Go
Apache License 2.0
coinbase/rosetta-cli
Use rosetta-sdk-go syncer and reconciler
127,814
13.05.2020 08:12:14
25,200
7957338684f842494ecb44911ecbc848bebfba9e
Don't hash keys in DB so prefix scan possible
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -17,7 +17,6 @@ package storage\nimport (\n\"bytes\"\n\"context\"\n- \"crypto/sha256\"\n\"encoding/gob\"\n\"encoding/json\"\n\"errors\"\n@@ -51,6 +50,9 @@ const (\n...
Go
Apache License 2.0
coinbase/rosetta-cli
Don't hash keys in DB so prefix scan possible
127,814
13.05.2020 08:21:26
25,200
ca55f4d60ef292b986c4c82fb90a4e74e1398cfc
Add scan to storage
[ { "change_type": "MODIFY", "old_path": "internal/storage/badger_storage.go", "new_path": "internal/storage/badger_storage.go", "diff": "@@ -156,3 +156,32 @@ func (b *BadgerStorage) Get(\nreturn true, value, nil\n}\n+\n+// Scan fetches all items at a given prefix. This is typically\n+// used to get a...
Go
Apache License 2.0
coinbase/rosetta-cli
Add scan to storage
127,814
13.05.2020 08:35:53
25,200
6f8449f0696bd7a54a289facd1f1e7f6a2931b13
Add function to return all stored AccountCurrency
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -28,6 +28,7 @@ import (\n\"github.com/coinbase/rosetta-sdk-go/asserter\"\n\"github.com/coinbase/rosetta-sdk-go/parser\"\n+ \"github.com/coinbase/rosetta-sdk-go/rec...
Go
Apache License 2.0
coinbase/rosetta-cli
Add function to return all stored AccountCurrency
127,814
13.05.2020 08:43:28
25,200
faad28732539a241b6553ed41124921ba49c1d84
Restore seen accounts from storage
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -355,6 +355,12 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\n}\n}\n+ // Get all previously seen accounts\n+ seenAccounts, err := blockStorage.GetAllAccountCurrency(ctx)\n+ if err != nil {\n+ lo...
Go
Apache License 2.0
coinbase/rosetta-cli
Restore seen accounts from storage
127,814
15.05.2020 11:10:35
25,200
f6e6284cce65b82b9902abb87eddf1bf4c56b2ce
Close db correctly
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -314,6 +314,14 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\nif err != nil {\nlog.Fatal(fmt.Errorf(\"%w: unable to initialize data store\", err))\n}\n+ defer func() {\n+ log.Println(\"closing d...
Go
Apache License 2.0
coinbase/rosetta-cli
Close db correctly
127,814
15.05.2020 14:18:08
25,200
5c336e0a2fc9aae5b4b152f2cb9b9202b42d53f8
Change scanning logic in loop
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -339,6 +339,7 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\n)\nblockStorage := storage.NewBlockStorage(ctx, localStore, blockStorageHelper)\n+\n// Bootstrap balances if provided\nif len(Bootstr...
Go
Apache License 2.0
coinbase/rosetta-cli
Change scanning logic in loop
127,814
15.05.2020 14:40:32
25,200
0048144eb24891929f8763626462e3e3ca513c6b
Handle OS signals to ensure we close the DB
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -20,7 +20,10 @@ import (\n\"fmt\"\n\"io/ioutil\"\n\"log\"\n+ \"os\"\n+ \"os/signal\"\n\"path\"\n+ \"syscall\"\n\"time\"\n\"github.com/coinbase/rosetta-cli/internal/logger\"\n@@ -430,10 +433,20 @@ func runC...
Go
Apache License 2.0
coinbase/rosetta-cli
Handle OS signals to ensure we close the DB
127,814
18.05.2020 08:02:55
25,200
e34d4ef56d173eb28ff20fae7138e49b0eccd7dd
support active/inactive concurrency config
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -94,6 +94,7 @@ Usage:\nrosetta-cli check [flags]\nFlags:\n+ --active-reconciliation-concurrency uint concurrency to use while fetching accounts during active reconciliation (default 8)\n--block-concurrency uint ...
Go
Apache License 2.0
coinbase/rosetta-cli
support active/inactive concurrency config
127,814
19.05.2020 08:13:51
25,200
949de0235a408e9c19ca55e67f36e615d4314139
Exit with correct status
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -448,12 +448,10 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\n}()\nerr = g.Wait()\n- if err != nil {\n- // TODO: return status code that indicates if reconciliation succeeded or\n- // failed (c...
Go
Apache License 2.0
coinbase/rosetta-cli
Exit with correct status
127,814
19.05.2020 08:58:46
25,200
920651726db9f914e355586e08bdd8587f7bdd4d
Remove unnecessary context cancel call
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -381,7 +381,6 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\n)\nreconcilerHandler := processor.NewReconcilerHandler(\n- cancel,\nlogger,\nHaltOnReconciliationError,\n)\n@@ -425,7 +424,7 @@ func ...
Go
Apache License 2.0
coinbase/rosetta-cli
Remove unnecessary context cancel call
127,814
19.05.2020 11:58:17
25,200
7f4df7c6b35cd942d5aa5a65671c293c9adeed1a
[WIP] First pass at reconciliation finder
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -286,6 +286,121 @@ at the examples directory for an example of how to structure this file.`,\n)\n}\n+func findMissingOps(\n+ ctx context.Context,\n+ accountCurrency *reconciler.AccountCurrency,\n+ startInd...
Go
Apache License 2.0
coinbase/rosetta-cli
[WIP] First pass at reconciliation finder
127,814
20.05.2020 08:49:02
25,200
f4a60b0dbddc3f0c50b86cea36479e603aafe7f7
Disable DB logging
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -365,6 +365,7 @@ func findMissingOps(\nlogger,\nr,\nfetcher,\n+ accountCurrency,\n)\ng, ctx := errgroup.WithContext(ctx)\n@@ -517,6 +518,7 @@ func runCheckCmd(cmd *cobra.Command, args []string) {\nlogger,\...
Go
Apache License 2.0
coinbase/rosetta-cli
Disable DB logging
127,814
20.05.2020 11:16:43
25,200
c70488a57a9be08184514f73473fa23e580fc57a
Cleanup error handling and support signals
[ { "change_type": "MODIFY", "old_path": "cmd/check.go", "new_path": "cmd/check.go", "diff": "@@ -17,6 +17,7 @@ package cmd\nimport (\n\"context\"\n\"encoding/json\"\n+ \"errors\"\n\"fmt\"\n\"io/ioutil\"\n\"log\"\n@@ -47,6 +48,12 @@ const (\n//\n// TODO: make configurable\nExtendedRetryElapsedTime = 5...
Go
Apache License 2.0
coinbase/rosetta-cli
Cleanup error handling and support signals
127,833
27.05.2020 17:44:48
-19,080
da4b1bc98f70f4d54f9ac0c9711f58089fa52a51
UpdateBalance: check parent is not genesis
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -490,7 +490,10 @@ func (b *BlockStorage) UpdateBalance(\n}\nvar existingValue string\n- if exists {\n+ // Initialize to zero if change.Block == parentBlock == gene...
Go
Apache License 2.0
coinbase/rosetta-cli
UpdateBalance: check parent is not genesis
127,833
29.05.2020 23:44:28
-19,080
3a883e5632114929653b3aef871b7223e011573a
storage: fix genesis account balance double count
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -490,7 +490,7 @@ func (b *BlockStorage) UpdateBalance(\n}\nvar existingValue string\n- // Initialize to zero if change.Block == parentBlock == genesis block\n+ // ...
Go
Apache License 2.0
coinbase/rosetta-cli
storage: fix genesis account balance double count
127,833
29.05.2020 23:56:17
-19,080
a193d33367f2805a69e80e42f587855394d88809
ci: use switch instead of if-else
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -490,17 +490,18 @@ func (b *BlockStorage) UpdateBalance(\n}\nvar existingValue string\n+ switch {\n+ case parentBlock != nil && change.Block.Hash == parentBlock.Ha...
Go
Apache License 2.0
coinbase/rosetta-cli
ci: use switch instead of if-else
127,833
30.05.2020 00:05:14
-19,080
de6f710d59503b9ca3eaee5db4204e9cf8ef095f
storage: lookup balances map first
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage_test.go", "new_path": "internal/storage/block_storage_test.go", "diff": "@@ -873,11 +873,6 @@ func (h *MockBlockStorageHelper) AccountBalance(\ncurrency *types.Currency,\nblock *types.BlockIdentifier,\n) (*types.Amount, error) {\...
Go
Apache License 2.0
coinbase/rosetta-cli
storage: lookup balances map first
127,833
30.05.2020 10:04:46
-19,080
ed1f08ab161d80e3b43a0c16ed3484aa054fe141
storage: switch cases
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -491,9 +491,7 @@ func (b *BlockStorage) UpdateBalance(\nvar existingValue string\nswitch {\n- case parentBlock != nil && change.Block.Hash == parentBlock.Hash:\n- ...
Go
Apache License 2.0
coinbase/rosetta-cli
storage: switch cases
127,833
30.05.2020 21:16:52
-19,080
ef61b3ca4772f1aff9c48e86a1eb97d72d45a80b
storage: fix comments nits
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -491,20 +491,21 @@ func (b *BlockStorage) UpdateBalance(\nvar existingValue string\nswitch {\n- // this could happen if balances are bootstrapped and should not be...
Go
Apache License 2.0
coinbase/rosetta-cli
storage: fix comments nits
127,814
13.07.2020 10:31:36
25,200
0537b77f3f3b75389f4c767590f1c16752f380f2
Replicate error in
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage_test.go", "new_path": "internal/storage/block_storage_test.go", "diff": "@@ -176,6 +176,69 @@ var (\n},\nTimestamp: 1,\n}\n+\n+ complexBlock = &types.Block{\n+ BlockIdentifier: &types.BlockIdentifier{\n+ Hash: \"blah 3\",\n+ Inde...
Go
Apache License 2.0
coinbase/rosetta-cli
Replicate error in #49
127,814
13.07.2020 11:28:10
25,200
ff6bbd44a561670cd37b9785c3af81f600aeeb8d
Replace gob with msgpack
[ { "change_type": "MODIFY", "old_path": "go.mod", "new_path": "go.mod", "diff": "@@ -12,6 +12,7 @@ require (\ngithub.com/spf13/cobra v1.0.0\ngithub.com/spf13/pflag v1.0.5 // indirect\ngithub.com/stretchr/testify v1.6.1\n+ github.com/vmihailenco/msgpack/v5 v5.0.0-beta.1\ngolang.org/x/net v0.0.0-202005...
Go
Apache License 2.0
coinbase/rosetta-cli
Replace gob with msgpack
127,814
13.07.2020 11:42:07
25,200
69d2723d26e99d233be18a10388e6218c99ff90c
Cleanup encoder/decoder initialization
[ { "change_type": "MODIFY", "old_path": "internal/storage/block_storage.go", "new_path": "internal/storage/block_storage.go", "diff": "@@ -20,6 +20,7 @@ import (\n\"encoding/json\"\n\"errors\"\n\"fmt\"\n+ \"io\"\n\"io/ioutil\"\n\"log\"\n\"math/big\"\n@@ -116,6 +117,20 @@ func GetBalanceKey(account *t...
Go
Apache License 2.0
coinbase/rosetta-cli
Cleanup encoder/decoder initialization