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

Commit bb7972f5 authored by tianle's avatar tianle

Merge branch 'v2.3.1_qc_empty_getstate' into 'v2.3.3_qc' (merge request !41)

v2.3.1_qc_empty_getstate
parents c21c7bce a641d442
...@@ -719,7 +719,7 @@ func (s *SDK) newIterator(iteratorFuncName, startKey string, startField string, ...@@ -719,7 +719,7 @@ func (s *SDK) newIterator(iteratorFuncName, startKey string, startField string,
} }
// reset writeMap // reset writeMap
s.writeMap = make(map[string][]byte, MapSize) //s.writeMap = make(map[string][]byte, MapSize)
createKvIteratorReq := &protogo.DockerVMMessage{ createKvIteratorReq := &protogo.DockerVMMessage{
ChainId: s.chainId, ChainId: s.chainId,
...@@ -774,7 +774,7 @@ func (s *SDK) NewHistoryKvIterForKey(key, field string) (KeyHistoryKvIter, error ...@@ -774,7 +774,7 @@ func (s *SDK) NewHistoryKvIterForKey(key, field string) (KeyHistoryKvIter, error
} }
// reset writeMap // reset writeMap
s.writeMap = make(map[string][]byte, MapSize) //s.writeMap = make(map[string][]byte, MapSize)
createKeyHistoryKvIterReq := &protogo.DockerVMMessage{ createKeyHistoryKvIterReq := &protogo.DockerVMMessage{
ChainId: s.chainId, ChainId: s.chainId,
......
...@@ -34,7 +34,7 @@ type SDKInterface interface { ...@@ -34,7 +34,7 @@ type SDKInterface interface {
// @param field: 获取的参数名 // @param field: 获取的参数名
// @return1: 获取结果,格式为string // @return1: 获取结果,格式为string
// @return2: 获取错误信息 // @return2: 获取错误信息
// Deprecated // Deprecated: 无法通过返回值来判断state是否存在,建议使用GetStateWithExists
GetState(key, field string) (string, error) GetState(key, field string) (string, error)
// GetStateWithExists get [key, field] from chain // GetStateWithExists get [key, field] from chain
// @param key: 获取的参数名 // @param key: 获取的参数名
...@@ -58,7 +58,7 @@ type SDKInterface interface { ...@@ -58,7 +58,7 @@ type SDKInterface interface {
// @param key: 获取的参数名 // @param key: 获取的参数名
// @return1: 获取结果,格式为string // @return1: 获取结果,格式为string
// @return2: 获取错误信息 // @return2: 获取错误信息
// Deprecated // Deprecated: 无法通过返回值来判断state是否存在,建议使用GetStateFromKeyWithExists
GetStateFromKey(key string) (string, error) GetStateFromKey(key string) (string, error)
// GetStateFromKeyWithExists get [key] from chain // GetStateFromKeyWithExists get [key] from chain
// @param key: 获取的参数名 // @param key: 获取的参数名
......
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