Skip to content

Conversation

@michaelbeam
Copy link
Contributor

sorry for the mess. This PR should cover FD-961 and FD-963

sambarnes and others added 30 commits August 28, 2018 11:29
…alid keys, replacing keys, signing attributes and endorsements
…g the hash of the content instead, so that it fits within the ledger's buffer
Copy link
Contributor

@Emyrk Emyrk left a 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 👍

Copy link
Contributor

@Emyrk Emyrk left a 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

@Emyrk
Copy link
Contributor

Emyrk commented Jun 17, 2019

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 {
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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) {
Copy link
Contributor

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)
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a code move

@Emyrk Emyrk merged commit b9c573a into v1-rollup Jun 17, 2019
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.

10 participants