-
Notifications
You must be signed in to change notification settings - Fork 19
V1 rollup testing #108
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
V1 rollup testing #108
Conversation
…that existed at or before the given height
…alid keys, replacing keys, signing attributes and endorsements
…ven the public key
…t-height response
…g the hash of the content instead, so that it fits within the ledger's buffer
Emyrk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a big one, only did a first pass review looking at comments and verifying the enterprise-wallet still builds against the refactor 👍
Emyrk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only change I think should be made is to verify the glide.lock file. It looks like it could be pruned
Corrected some dependencies in the lock file for unit tests
Yml files cannot handle tabs
Fd 1059 circle ci
|
Added circle integration to verify PR build |
| // TransactionData is metadata about a given Transaction, including data about | ||
| // the Transaction Status (i.e. weather the Transaction has been written to the | ||
| // Blockchain). | ||
| type TransactionData struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| func EntryCommitACK(txID, fullTransaction string) (*EntryStatus, error) { | ||
| params := ackRequest{Hash: txID, ChainID: "c", FullTransaction: fullTransaction} | ||
| // FactoidACK gets the status of a given Factoid Transaction. | ||
| func FactoidACK(txID, fullTransaction string) (*FactoidTxStatus, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| func FactoidACK(txID, fullTransaction string) (*FactoidTxStatus, error) { | ||
| params := ackRequest{Hash: txID, ChainID: "f", FullTransaction: fullTransaction} | ||
| // EntryCommitACK searches for an entry/chain commit with a given transaction ID. | ||
| func EntryCommitACK(txID, fullTransaction string) (*EntryStatus, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| return base58.Encode(buf.Bytes()) | ||
| } | ||
|
|
||
| // ParseMnemonic parse and validate a bip39 mnumonic string. Remove extra |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| @@ -1,178 +0,0 @@ | |||
| // Copyright 2016 Factom Foundation | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved code
| return r.Entry, nil | ||
| } | ||
|
|
||
| // GetChainHead returns the hash of the most recent Entry made into a given |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| } | ||
|
|
||
| // GetAllChainEntries returns a list of all Factom Entries for a given Chain. | ||
| func GetAllChainEntries(chainid string) ([]*Entry, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| // GetAllChainEntriesAtHeight returns a list of all Factom Entries for a given | ||
| // Chain at a given point in the Chain's history. | ||
| func GetAllChainEntriesAtHeight(chainid string, height int64) ([]*Entry, error) { | ||
| es := make([]*Entry, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel this could be refactored to share most of the code with GetAllChainEntries
| } | ||
|
|
||
| // GetEntry requests an Entry from the factomd API by its Entry Hash | ||
| func GetEntry(hash string) (*Entry, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
| } | ||
|
|
||
| // GetHeights requests the list of heights from the factomd API. | ||
| func GetHeights() (*HeightsResponse, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code move
sorry for the mess. This PR should cover FD-961 and FD-963