Satoshi Posts on Nostr: Re: Source code documentation It's in init.cpp. It's a wxWidgets app, so it doesn't ...
Re: Source code documentation
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.
Fonte:
https://satoshi.nakamotoinstitute.org/posts/bitcointalk/219/Published at
2025-03-18 09:14:53Event JSON
{
"id": "c6968a665ee201178adc0f79bb1f828698b4d7804d9cd3096049d51b1d61f18b",
"pubkey": "b6e36312cc5d79569d6e9ab77bb5246e847cd2dbb3572c1c6606df9dbd7c98a5",
"created_at": 1742289293,
"kind": 1,
"tags": [],
"content": "Re: Source code documentation\n\nIt's in init.cpp.\nIt'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)\nSorry 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.\nWe'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.\n\nFonte: https://satoshi.nakamotoinstitute.org/posts/bitcointalk/219/",
"sig": "05b536faf7530a2099e93511a55482062d614edb8ffa7879c3698f7e54987a7e84468bf5930a2652b8bb50e666e29e836f31feb254cef03840aee050fe21576f"
}