新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 4e5854db authored by gh lu's avatar gh lu

Merge remote-tracking branch 'origin/v2.3.3_qc' into v2.3.1_qc_empty_getstate

# Conflicts:
#	sandbox/tx_handler.go
parents 1182affc c21c7bce
......@@ -200,7 +200,7 @@ func (h *TxHandler) handleTxRequest(msg *protogo.DockerVMMessage) error {
// - 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 value is the same as cached in wset
// 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"
......
......@@ -20,6 +20,8 @@ const (
ERROR = 1
)
var SuccessResponse = protogo.Response{Status: OK, Payload: []byte("ok")}
// Success ...
func Success(payload []byte) protogo.Response {
return protogo.Response{
......@@ -28,14 +30,6 @@ func Success(payload []byte) protogo.Response {
}
}
// Success normal
func SuccessNormal() protogo.Response {
return protogo.Response{
Status: OK,
Payload: []byte("success"),
}
}
// Error ...
func Error(msg string) protogo.Response {
return protogo.Response{
......
......@@ -646,7 +646,7 @@ func (s *SDK) CallContract(contractName, method string, args map[string][]byte)
return protogo.Response{
Status: ERROR,
Message: result.SysCallMessage.Message,
Payload: nil,
Payload: result.SysCallMessage.Payload[KeyCallContractResp],
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment