|
February 22, 2011, 10:28:10 AM |
|
Hi Themyos,
I just cloned a fresh copy of the bitcoin development tree from github, and then tried to patch in the rpc.cpp getblock patch
I got two successful hunk applications and one fail
--- rpc.cpp +++ rpc.cpp @@ -1926,6 +2040,8 @@ if (strMethod == "sendfrom" && n > 2) ConvertTo<double>(params[2]); if (strMethod == "sendfrom" && n > 3) ConvertTo<boost::int64_t>(params[3]); if (strMethod == "listtransactions" && n > 1) ConvertTo<boost::int64_t>(params[1]); + if (strMethod == "getblock" && n > 0) ConvertTo<boost::int64_t>(params[0]); + if (strMethod == "getblockbycount" && n > 0) ConvertTo<boost::int64_t>(params[0]);
// Execute Object reply = CallRPC(strMethod, params);
I tried patching 0.3.19 and got three fails.
Should I try patching 0.3.20? I'm downloading it now.
Cheers, Jin
|