-
Notifications
You must be signed in to change notification settings - Fork 117
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
Conversation
lib/runtime/test_helpers.go
Outdated
@@ -307,3 +309,11 @@ func (trn testRuntimeNetwork) NetworkState() common.NetworkState { | |||
Multiaddrs: testAddrs, | |||
} | |||
} | |||
|
|||
type mockTransaction 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.
rename to mockTransactionState
?
lib/runtime/imports_old.go
Outdated
|
||
// validate the transaction | ||
txv := transaction.NewValidity(0, [][]byte{{}}, [][]byte{{}}, 0, false) | ||
// todo determine how to validate transaction here, calling runtimeAPI.ValidateTransaction? |
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.
remove todo, it's good as is!
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.
looks good!
Changes
ext_submit_transaction
functionTests
Checklist
Issues