回复:源代码文档
原始发布页
打开来源页面查看 1 个交叉存档
它在 init.cpp 中。
这是一个 wxWidgets 应用,所以没有 main() 函数。可能过不了多久就会有,因为我已经快要让 bitcoind 可以在没有 wxBase 的情况下构建了。(它会放在 init.cpp 中)
抱歉我选择了 "main.cpp" 这个文件名,另一个可能的名字本可以是 "core.cpp"。现在要改已经太晚了。我仍然更喜欢 main.cpp。
我们仍然非常需要示例代码,展示使用 JSON-RPC 函数的推荐方式,例如典型店面网站上的基本账户系统。使用 getreceivedbylabel,并把用户名作为标签;某个账户已保存的比特币地址一经使用,就换成一个新的比特币地址。我曾在论坛的某个地方发布过一段示例代码。(搜索 getreceivedbylabel 或 getnewaddress)示例代码可以是一个最普通的银行网站,让你可以存入和发送付款。
英文原文
展开英文原文
It's in init.cpp.
It's a wxWidgets app, so it doesn't have a main() function. It may in a little while, since I'm pretty close to making bitcoind build w/o wxBase. (it'll be in init.cpp)
Sorry about my choice of the filename "main.cpp", another possible name would have been "core.cpp". It's much too late to change. I still prefer main.cpp.
We're still in great need of sample code showing the recommended way to use the JSON-RPC functions, like for a basic account system on a typical storefront website. Using getreceivedbylabel using the username as the label, changing to a new bitcoin address once the stored one for that account gets used. I posted a sample code fragment on the forum somewhere. (search on getreceivedbylabel or getnewaddress) The sample code could be a plain vanilla bank site where you can deposit and send payments.