浏览代码

Output filter ID as hex

Taylor Gerring 10 年之前
父节点
当前提交
21fca93852
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/api.go

+ 1 - 1
rpc/api.go

@@ -380,7 +380,7 @@ func (p *EthereumApi) NewWhisperFilter(args *WhisperFilterArgs, reply *interface
 	}
 	id = p.xeth().Whisper().Watch(opts)
 	p.messages[id] = &whisperFilter{timeout: time.Now()}
-	*reply = id
+	*reply = toHex(big.NewInt(int64(id)).Bytes())
 	return nil
 }