原始文献 / 论坛帖 / Re: JSON-RPC method idea: list transactions newer than a given txid
Re: JSON-RPC method idea: list transactions newer than a given txid
Bitcointalk · 2010-12-09 18:08:08 UTC
引用自 jgarzik(2010 年 12 月 9 日 12:58:05 AM)(https://bitcointalk.org/index.php?topic=2151.msg28330#msg28330):关于“txs after <txid>”,我同意你和 satoshi 的看法。我的 listtransactions(现在是 xlisttransactions)补丁特意没有这个功能,一直都没有。
只要接口设计成展示用户最近 N 笔交易历史这种用途就行,现在有了 Accounts 功能,用正确的方式做付款检测更容易了。
Gavin,listtransactions 能不能加个选项,列出所有账户的交易?
我不确定接口能长什么样,也许:
listtransactions <JSON null type> [count]
不过从命令行做这个会很难。
我想不出接口的好方案,这就是问题所在。也许像 "" 一样搞个 "*” 特殊情况。所有人都得确保用户建不出叫 "*” 的账户名。
引用自 jgarzik(2010 年 12 月 9 日 04:13:50 PM)(https://bitcointalk.org/index.php?topic=2151.msg28572#msg28572):当然,用交易跟踪这个很容易。
我不明白用交易跟踪这个怎么就“容易”了。
英文原文
Quote from: jgarzik on December 09, 2010, 12:58:05 AM(https://bitcointalk.org/index.php?topic=2151.msg28330#msg28330)I agree with you and satoshi about "txs after <txid>". My listtransactions (now xlisttransactions) patch pointedly does not have that feature, and never has.
As long as the interface is designed for things like showing the user the last N transactions history, it's fine, now that we have the Accounts feature making it easier to do payment detection the right way.
Gavin, could listtransactions have an option to list transactions for all accounts?
I'm not sure what the interface could be, maybe:
listtransactions <JSON null type> [count]
It would be hard to do that from the command line though.
I can't think of a good solution for the interface, that's the problem. Maybe "*" special case like "" is. Everyone would have to make sure no user can create account name "*".
Quote from: jgarzik on December 09, 2010, 04:13:50 PM(https://bitcointalk.org/index.php?topic=2151.msg28572#msg28572)Sure, and that's easy enough to track with transactions.
I don't get how that's "easy" to track with transactions.
