Bitcointalk · JSON-RPC method idea: list transactions newer than a given txid

中本聪,2010 年 12 月 9 日

SN-3764 已核对来源,附原文与上下文。

阅读语言
中文译文

关于「 之后的交易」,我同意你和中本聪的看法。我的 listtransactions(现在叫 xlisttransactions)补丁刻意不提供那个功能,从来都没有。

只要这个接口的定位是向用户展示最近 N 笔交易历史之类的用途,就没问题——何况现在有了账户功能,用正确的方式做支付检测更容易了。

Gavin,listtransactions 能不能加个选项,列出所有账户的交易?

我不确定接口理应是什么样,兴许: listtransactions [count]

不过从命令行做这个会很别扭。

我想不出接口的好方案,问题就在这。兴许像 "" 一样来个 "*" 特例。如此人人都得确保没有用户能创建名为 "*" 的账户。

当然,用交易来追踪这一点相当容易。

我不明白用交易追踪这事儿怎么就「相当容易」了。

ORIGINAL · 英文原文
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 "*".

Sure, and that's easy enough to track with transactions.
I don't get how that's "easy" to track with transactions.
上下文
← 上一条 SN-3764 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-3764