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

PGDB Refactor & PG Rollback Functionality & Rollback Testing Endpoint #102

Closed
wants to merge 100 commits into from

Conversation

dbkbali
Copy link

@dbkbali dbkbali commented Sep 27, 2018

dutterbutter and others added 30 commits August 17, 2018 13:47
…Be Investigated

- Rewrote PG commands to use Transaction Blocks to avoid race conditions
- Removed Function InitDBTest As InitDb now handles DB connections for all environments
- Still some failures related to PG database that need adjustments to tests
Copy link

@dutterbutter dutterbutter left a comment

Choose a reason for hiding this comment

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

I pulled down and ran geth, it successfully recorded blocks, transactions, internal transactions and updated accounts accordingly.

gasPrice = 0
//Appending GENESIS to address stored as txHash and From Addr
Genesis := []string{"GENESIS_", k.String()}
GENESIS := "GENESIS"
txHash := strings.Join(Genesis, k.String())
//Create the accountNonce, set to 1 (1 incoming tx), format type
accountNonce := v.Nonce + 1
accountNoncee := strconv.FormatUint(accountNonce, 10)
// accountNoncee := strconv.FormatUint(accountNonce, 10)
Copy link

Choose a reason for hiding this comment

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

This should be removed if not used

Time string
ID int
Hash string
BlockHash string
Copy link

Choose a reason for hiding this comment

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

only one line is added (that I can see), we should probably revert the other changes

@@ -239,6 +271,7 @@ func testChainOdr(t *testing.T, protocol int, fn odrTestFn) {
)
gspec.MustCommit(ldb)
// Assemble the test environment

Copy link

Choose a reason for hiding this comment

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

new line should be removed

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @strangepowers I am also reviewing as getting some strange behaviour with respect to creation of Genesis Accounts as well as when running in Docker vs Local. I am going to delay the merge until I have a chance to further investigate this weekend - were you able to get docker running?

@dbkbali dbkbali closed this Sep 29, 2018
@dbkbali
Copy link
Author

dbkbali commented Sep 29, 2018

I am closing this for now - as some further testing is required - due to the fact that we are getting some strange behaviours when running in Docker versus locally

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.

4 participants