Experiments with exporters (tokens exporter etc.)#44
Draft
andreibancioiu wants to merge 4 commits intomainfrom
Draft
Experiments with exporters (tokens exporter etc.)#44andreibancioiu wants to merge 4 commits intomainfrom
andreibancioiu wants to merge 4 commits intomainfrom
Conversation
| numAccountsOnMainTrie++ | ||
|
|
||
| if numAccountsOnMainTrie%1000 == 0 { | ||
| fmt.Println(numAccountsOnMainTrie) |
Contributor
There was a problem hiding this comment.
extend the print? maybe parsed x accounts
| @@ -0,0 +1,22 @@ | |||
| package main | |||
|
|
|||
| type exportedRoot struct { | |||
Contributor
There was a problem hiding this comment.
might rename to exportedAccountsForRootHash
|
|
||
| numAccountsOnMainTrie := 0 | ||
| addressTokensMap := make(map[string]map[string]struct{}) | ||
| root := exportedRoot{ |
Contributor
There was a problem hiding this comment.
might rename root to accountsForRootHash
|
|
||
| func saveResult(addressTokensMap map[string]map[string]struct{}, outfile string) error { | ||
| jsonBytes, err := json.MarshalIndent(addressTokensMap, "", " ") | ||
| func saveResult(addressTokensMap interface{}, outfile string) error { |
Contributor
There was a problem hiding this comment.
use concrete type instead of interface?
| if nonce != 0 { | ||
| tokens := bytes.Split(token, []byte("-")) | ||
|
|
||
| rebuiltName = string(tokens[0]) + "-" + string(tokens[1]) |
Contributor
There was a problem hiding this comment.
not sure of the intent of this. The token already was ABC-010101 and rebuiltName should still be ABC-010101
| vmcommon "github.com/multiversx/mx-chain-vm-common-go" | ||
| ) | ||
|
|
||
| func GetESDTNFTTokenOnDestination( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.