Bitcointalk

auto backing up of wallet.dat

中本聪 · 2010 年 8 月 27 日

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

阅读语言

抱歉,我最近太忙,只能扫一眼消息,还跟不上。

Sorry, I've been so busy lately I've been skimming messages and I still can't keep up.

我们要尽可能避免 Windows API 调用。它们通常要传 6-8 个参数、要大量测试才能用对,做件简单事得写一页代码。

We want to avoid Windows API calls whenever possible. They usually take about 6-8 parameters and a lot of testing to get right, it takes a page of code to do something simple.

我通常躲着 iostreams。似乎我太常撞上它的限制。他们 90 年代把 C++ 流标准搞得一团糟,真遗憾,用对了的话流可以相当强大有用。在 rpc.cpp 里用它最终恐也会被证明是个错误。

I usually shy away from iostreams. Seems like I too often hit limitations. They kind of botched the C++ streams standard in the 90's, which is too bad, streams can be very powerful and useful when done right. Using it in rpc.cpp may still turn out to be a mistake.

说到底,我宁可调用现成的文件拷贝函数,也不想自己写一个再测试。

Bottom line is I'd rather call an existing file copy function than make and test my own.

来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2616

阅读字号

选择适合你的字号,之后阅读会继续使用。