Commit 0c5d333f authored by vipwzw's avatar vipwzw Committed by 33cn

update chain33

parent acb6a5c9
...@@ -22,7 +22,7 @@ chain33背后故事: [chain33诞生记](https://mp.weixin.qq.com/s/9g5ZFDKJi9uzR ...@@ -22,7 +22,7 @@ chain33背后故事: [chain33诞生记](https://mp.weixin.qq.com/s/9g5ZFDKJi9uzR
# 感谢 # 感谢
[腾讯安全玄武实验室](https://github.com/33cn/chain33/issues?utf8=%E2%9C%93&q=label%3A%E8%85%BE%E8%AE%AF%E7%8E%84%E6%AD%A6%E5%AE%9E%E9%AA%8C%E5%AE%A4) [腾讯玄武安全实验室](https://github.com/33cn/chain33/issues?utf8=%E2%9C%93&q=label%3A%E8%85%BE%E8%AE%AF%E7%8E%84%E6%AD%A6%E5%AE%9E%E9%AA%8C%E5%AE%A4)
# bug 奖励 # bug 奖励
......
...@@ -109,7 +109,6 @@ func (store *BaseStore) processMessage(msg queue.Message) { ...@@ -109,7 +109,6 @@ func (store *BaseStore) processMessage(msg queue.Message) {
go func() { go func() {
datas := msg.GetData().(*types.StoreSetWithSync) datas := msg.GetData().(*types.StoreSetWithSync)
hash, err := store.child.MemSet(datas.Storeset, datas.Sync) hash, err := store.child.MemSet(datas.Storeset, datas.Sync)
println("EventStoreMemSet", string(hash))
if err != nil { if err != nil {
msg.Reply(client.NewMessage("", types.EventStoreSetReply, err)) msg.Reply(client.NewMessage("", types.EventStoreSetReply, err))
return return
...@@ -119,7 +118,6 @@ func (store *BaseStore) processMessage(msg queue.Message) { ...@@ -119,7 +118,6 @@ func (store *BaseStore) processMessage(msg queue.Message) {
} else if msg.Ty == types.EventStoreCommit { //把内存中set 的交易 commit } else if msg.Ty == types.EventStoreCommit { //把内存中set 的交易 commit
go func() { go func() {
req := msg.GetData().(*types.ReqHash) req := msg.GetData().(*types.ReqHash)
println("EventStoreCommit", string(req.Hash))
hash, err := store.child.Commit(req) hash, err := store.child.Commit(req)
if hash == nil { if hash == nil {
msg.Reply(client.NewMessage("", types.EventStoreCommit, types.ErrHashNotFound)) msg.Reply(client.NewMessage("", types.EventStoreCommit, types.ErrHashNotFound))
......
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