原始文献 / 论坛帖 / Re: Source code documentation
Re: Source code documentation
Bitcointalk · 2010-07-16 17:15:47 UTC
在 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.
