Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
白 鹿
contract-sdk-go
Commits
014ff22c
Commit
014ff22c
authored
Feb 08, 2023
by
gh lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update rwset comments
--bug=0
parent
4ec00c82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sandbox/tx_handler.go
sandbox/tx_handler.go
+6
-0
No files found.
sandbox/tx_handler.go
View file @
014ff22c
...
...
@@ -195,6 +195,12 @@ func (h *TxHandler) handleTxRequest(msg *protogo.DockerVMMessage) error {
txResponse
.
Events
=
responseEvents
}
else
{
// If tx failed, we don't need to return wset and rset:
// - wset: wset is always dropped for fail
// - rset: rset can not be dropped for fail
// - from simContext: simContext already has such keys, value is not important
// - from wset: simContext don't have such keys, but it will not cause conflict for applying simContext,
// because even if other txs are written first, the read set here will eventually be dropped
txResponse
.
Code
=
protogo
.
DockerVMCode_FAIL
txResponse
.
Result
=
[]
byte
(
response
.
Message
)
txResponse
.
Message
=
"Fail"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment