Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support update and get history #108

Open
metabd opened this issue Apr 22, 2020 · 1 comment
Open

support update and get history #108

metabd opened this issue Apr 22, 2020 · 1 comment

Comments

@metabd
Copy link

metabd commented Apr 22, 2020

No description provided.

@metabd metabd added this to the kv store support update milestone Apr 22, 2020
@metabd
Copy link
Author

metabd commented Apr 22, 2020

kv 的set与get接口不变,继续使用原来的接口 Put(kvTx *KVTx) , 数据结构不变。
新增历史查询接口,查询某一个key被设置过的历史。GetHistory( key [] byte ) ([]UpdateHistory)
type UpdateHistory struct {
Value []byte //value值
TxHash []byte //曾经设置key的交易哈希
BlockHeight int64 //交易执行的高度
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant