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: indexer persistence #9

Merged
merged 1 commit into from
Aug 30, 2023
Merged

feat: indexer persistence #9

merged 1 commit into from
Aug 30, 2023

Conversation

agaffney
Copy link
Contributor

No description provided.

@agaffney
Copy link
Contributor Author

$ ./bluefin 
{"level":"info","timestamp":"2023-08-30T16:46:27-05:00","caller":"wallet/wallet.go:61","msg":"wrote generated mnemonic to seed.txt"}
{"level":"info","timestamp":"2023-08-30T16:46:27-05:00","caller":"bluefin/main.go:64","msg":"loaded mnemonic for address: addr1qx8na3xd95njjlu6sdygm5lzatf6e72upmc7kkxzrxhqw9ulyruvreu5kjdu42vqy0n7h44jfyk2wnam80xx87ty0uaqvc977c"}
{"level":"info","timestamp":"2023-08-30T16:46:27-05:00","caller":"bluefin/main.go:67","msg":"starting indexer on mainnet"}
{"level":"info","timestamp":"2023-08-30T16:46:29-05:00","caller":"indexer/indexer.go:154","msg":"found updated datum: nonce: 0, state: \"\\xe49\\vW\\xfdu\\x9bYa\\x10{\\x93\\x1d\\xcam\\x82l\\xb2\\xc2r\\xf0\\xf7\\x11\\xe2f\\xdfHЯäA\""}
{"level":"info","timestamp":"2023-08-30T16:46:35-05:00","caller":"indexer/indexer.go:154","msg":"found updated datum: nonce: 1, state: \"\\x00\\x00\\x02;\\xf7\\xbf\\x1b\\xe0}z\\xe4ni\\xec}\\\"կ-)\\xfb\\x1d\\xf18\\xd7\\x03\\xecG\\x0e\\xb6G@\""}
{"level":"info","timestamp":"2023-08-30T16:46:52-05:00","caller":"indexer/indexer.go:154","msg":"found updated datum: nonce: 2, state: \"\\x00\\x00\\tgLo\\x06ӂ\\x94\\xe3I\\xee\\x8aV\\xcd9D\\xbe#w\\xe7!\\xea)ZqIr\\xf1\\x92\\xb4\""}
^C
$ ./bluefin 
{"level":"info","timestamp":"2023-08-30T16:46:55-05:00","caller":"wallet/wallet.go:38","msg":"read mnemonic from seed.txt"}
{"level":"info","timestamp":"2023-08-30T16:46:55-05:00","caller":"bluefin/main.go:64","msg":"loaded mnemonic for address: addr1qx8na3xd95njjlu6sdygm5lzatf6e72upmc7kkxzrxhqw9ulyruvreu5kjdu42vqy0n7h44jfyk2wnam80xx87ty0uaqvc977c"}
{"level":"info","timestamp":"2023-08-30T16:46:55-05:00","caller":"bluefin/main.go:67","msg":"starting indexer on mainnet"}
{"level":"info","timestamp":"2023-08-30T16:46:55-05:00","caller":"indexer/indexer.go:72","msg":"found previous chainsync cursor: 101512789, 063c160392b42cf2f5f259f3ea1e4c89d45f1c9b1d5ef51807feb233051e2aa9"}
{"level":"info","timestamp":"2023-08-30T16:47:12-05:00","caller":"indexer/indexer.go:154","msg":"found updated datum: nonce: 3, state: \"\\x00\\x00\\x0f\\xb23\\xa9QO1\\xf9\\xcbb\\x85\\x03Q\\xc1\\t\\x11h\\x0f\\xeb\\xfe\\x85\\xab\\xfb\\xa6\\xf4\\x93\\b=B\\x88\""}
{"level":"info","timestamp":"2023-08-30T16:47:15-05:00","caller":"indexer/indexer.go:154","msg":"found updated datum: nonce: 4, state: \"\\x00\\x00\\x05Ӂ*\\xba\\xaeߠ\\x1e\\b\\x83eq\\x03d|1\\xf1\\xad\\xdbunڶ\\xb2\\xeb|,\\x03\\xf3\""}
{"level":"info","timestamp":"2023-08-30T16:47:16-05:00","caller":"indexer/indexer.go:154","msg":"found updated datum: nonce: 5, state: \"\\x00\\x00\\x05\\xefh\\x82D\\xfd1\\xff\\xbd\\xa3{\\xb4\\x17\\x19\\xc6m\\x8cǗ\\x98.\\x8bf\\x1b\\x1c\\x19\\xe0'R?\""}
^C

wolf31o2
wolf31o2 previously approved these changes Aug 30, 2023
Copy link
Member

@wolf31o2 wolf31o2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rename state, but that can happen in another PR

cmd/bluefin/main.go Outdated Show resolved Hide resolved
@agaffney agaffney merged commit 986fec5 into main Aug 30, 2023
4 checks passed
@agaffney agaffney deleted the feat/indexer-persistence branch August 30, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants