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

lib/runtime: implement ext_submit_transaction #1120

Merged
merged 8 commits into from
Oct 8, 2020

Conversation

edwardmack
Copy link
Member

@edwardmack edwardmack commented Oct 3, 2020

Changes

  • implement ext_submit_transaction function

Tests

go test ./lib/runtime/...

Checklist

  • I have read CODE_OF_CONDUCT and CONTRIBUTING
  • I have provided as much information as possible and necessary
  • I have reviewed my own pull request before requesting a review
  • All integration tests and required coverage checks are passing

Issues

@edwardmack edwardmack requested a review from noot October 4, 2020 14:12
@edwardmack edwardmack self-assigned this Oct 4, 2020
@@ -307,3 +309,11 @@ func (trn testRuntimeNetwork) NetworkState() common.NetworkState {
Multiaddrs: testAddrs,
}
}

type mockTransaction struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

rename to mockTransactionState?


// validate the transaction
txv := transaction.NewValidity(0, [][]byte{{}}, [][]byte{{}}, 0, false)
// todo determine how to validate transaction here, calling runtimeAPI.ValidateTransaction?
Copy link
Contributor

Choose a reason for hiding this comment

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

remove todo, it's good as is!

Copy link
Contributor

@noot noot left a comment

Choose a reason for hiding this comment

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

looks good!

@edwardmack edwardmack merged commit 1e9a7ac into development Oct 8, 2020
@edwardmack edwardmack deleted the ed/ext_submit_transaction branch October 8, 2020 00:42
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