Bitcoin Forum
November 15, 2019, 02:54:33 PM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 [92] 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 »
1821  Bitcoin / Wallet software / Re: !! new bitcoin client !! on: February 14, 2011, 08:53:42 AM
I'm still looking into windows but basically you need to install this,

http://developer.qt.nokia.com/wiki/PySide_Binaries_Windows

and apply the patch in the instructions to the git version of bitcoind

And it *should* work
1822  Local / Other languages/locations / Re: Esperanto ! on: February 14, 2011, 07:54:14 AM
Mi ĝustigis mian tradukon,


En mia urbo loĝas esperantiston, kaj ial li neŝatas tiun. Tiam kiam ni unue kunvenis, mi multe uzis ĝin Grin Kvankam mi nescias la tialon por lia neŝatado de tiun vorton.

Rigardu kaj kontrolu mian tradukon por eraroj. Ĉu vi volas fari francan tradukon? Mi intruis la metodon (ĝi ne estas malfacila)

Faru:
sudo apt-get install qt4-dev-tools
linguist-qt4

Nun malfermu la dosieron el ĉi tie,
Aŭ  https://github.com/genjix/spesmilo/blob/master/il8n/eo_EO.ts
Aŭ  https://github.com/genjix/spesmilo/blob/master/il8n/fr_FR.ts

Klaku kaj traduku! Poste sendu la dosieron al mi

1823  Bitcoin / Development & Technical Discussion / Re: [PATCH] isinitialized RPC method on: February 14, 2011, 07:00:02 AM
Right but you don't know whether bitcoind is running or not.

You can look for it in the OS process list.

As said... that's unreliable/undesirable.
1824  Other / Off-topic / Atlas Shrugged trailer released on: February 14, 2011, 06:06:08 AM
And it's so so so bad. Why would anyone make a (possibly three part given this is part one) film out of such a pile of crap.

http://socyberty.com/philosophy/atlas-shrugged-trailer-released-the-travesty-that-is-ayn-rand/

lol, so the turd finally droped from the anus.
1825  Local / Other languages/locations / Re: Esperanto ! on: February 14, 2011, 05:26:26 AM
Ĉu vi rimarkis pri novan bitmono-softvaro en esperanto?



La fadeno, http://bitcointalk.org/index.php?topic=3451.0
1826  Bitcoin / Wallet software / !! new bitcoin client !! on: February 14, 2011, 05:24:53 AM
Made a new client. Looking for testers and feedback.
https://github.com/genjix/spesmilo



And showing off internationalisation (slightly newer than above... made some minor corrections),



Code:
# as of version 47908a890726f424371c9784b8508cff163c2c78 (Gavin Andresen) Thu Feb 10 19:24:22 2011 -0500
#  Visual C++ compatibility fixes
git clone https://github.com/bitcoin/bitcoin

# apply the bitcoin.patch in this directory
make -f makefile.unix bitcoind
# copy to /usr/local/bin
sudo cp bitcoind /usr/local/bin

# install pyside for your distro, http://developer.qt.nokia.com/wiki/PySide_Binaries_Linux
sudo add-apt-repository ppa:pyside
sudo apt-get update
sudo apt-get install python-pyside

# run the program
python main.py

# Esperanto translation:
#   uncomment the 5th line from the bottom of main.py

Still got lots of features planned.
1827  Bitcoin / Bitcoin Discussion / Re: Jan 3rd is BITCOIN DAY on: February 14, 2011, 04:15:29 AM
happy birthday to you
happy birthday to you
happy birthday to bitcoin
happy birthday to you

1828  Bitcoin / Development & Technical Discussion / Re: [PATCH] isinitialized RPC method on: February 14, 2011, 01:36:35 AM
Right but you don't know whether bitcoind is running or not.

You can start it but then you don't know if it crashed. Checking the PID's is unreliable too.

And periodically having to check whether bitcoind has finished initialisation by recreating new connections then querying an RPC method to see whether it throws an exception is bad.
1829  Bitcoin / Bitcoin Discussion / Re: Best practice for fast transaction acceptance - how high is the risk? on: February 14, 2011, 01:35:11 AM
just pay the fee
1830  Bitcoin / Bitcoin Discussion / Re: bubble imminent on: February 14, 2011, 01:34:29 AM
mtgox has low volume- everybody buying up
1831  Economy / Marketplace / Re: Demonoid invites on: February 13, 2011, 10:45:39 PM
Everything I ever need is on thepiratebay

What's so good about demonoid?
1832  Bitcoin / Development & Technical Discussion / Re: 3.20 avaiable on Sourceforge while 3.19 on the main site ? on: February 13, 2011, 09:37:34 PM
please include this patch with the release,
http://bitcointalk.org/index.php?topic=3419.0
1833  Bitcoin / Development & Technical Discussion / Re: Payment to yourself on: February 13, 2011, 09:35:18 PM
I did "Copy to Clipboard" of my Bitcoin address and then hit Pay, paid myself 20 btc. Is this supposed to work?

It sort of worked and sort of didn't. The transaction displays as "Payment to yourself" with Debit -20.00 and Credit +20.00. But Status is stuck at "0/offline?". I'm online and I've never had a problem sending a transaction before.

yes it works. Just wait a while.
1834  Bitcoin / Bitcoin Discussion / Re: Easy Introduction to bitcoin on: February 13, 2011, 08:20:22 PM
Thanks! I've been looking for something like this (from a new persons perspective).
1835  Bitcoin / Development & Technical Discussion / Re: [PATCH] isinitialized RPC method on: February 13, 2011, 08:15:34 PM
I've updated the OP with a new version of the patch that adds an error message.

http://pastebin.com/W41J5K0M

in the few seconds before the rpc server has started and bitcoin is running, I need to know bitcoin is running but not initialised...
So I put the RPC server at the very beginning and add isinitialised (all other rpc methods except help/isinitialized will send an error when isinitialized is false)
1836  Bitcoin / Development & Technical Discussion / Re: [PATCH] isinitialized RPC method on: February 13, 2011, 06:58:08 PM
Why:
Currently it is hard for a GUI wrapping bitcoind by means of the RPC-server to detect when bitcoin is running but still initialising. This seeks to resolve that.

Or you could just deduce same from getinfo's "blocks" and "connections" output...



I don't mean downloading the block chain, or finding connections, I mean the completion of AppInit(...)
1837  Bitcoin / Development & Technical Discussion / [PATCH] isinitialized RPC method on: February 13, 2011, 08:44:30 AM
Why:
Currently it is hard for a GUI wrapping bitcoind by means of the RPC-server to detect when bitcoin is running but still initialising. This seeks to resolve that.

What does it do:
- Moves RPC server startup to very beginning.
- Adds isinitialized method.

Change made to bitcoin/bitcoin from github

http://pastebin.com/LYtBRXgk

Code:
diff --git a/init.cpp b/init.cpp
index 04bdd68..52cf7a1 100644
--- a/init.cpp
+++ b/init.cpp
@@ -115,6 +115,7 @@ bool AppInit(int argc, char* argv[])
     } catch (...) {
         PrintException(NULL, "AppInit()");
     }
+    fInitializationCompleted = true;
     if (!fRet)
         Shutdown(NULL);
     return fRet;
@@ -122,6 +123,9 @@ bool AppInit(int argc, char* argv[])
 
 bool AppInit2(int argc, char* argv[])
 {
+    if (GetBoolArg("-server") || fDaemon)
+        CreateThread(ThreadRPCServer, NULL);
+
 #ifdef _MSC_VER
     // Turn off microsoft heap dump noise
     _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
@@ -443,9 +447,6 @@ bool AppInit2(int argc, char* argv[])
     if (!CreateThread(StartNode, NULL))
         wxMessageBox("Error: CreateThread(StartNode) failed", "Bitcoin");
 
-    if (GetBoolArg("-server") || fDaemon)
-        CreateThread(ThreadRPCServer, NULL);
-
 #if defined(__WXMSW__) && defined(GUI)
     if (fFirstRun)
         SetStartOnSystemStartup(true);
diff --git a/rpc.cpp b/rpc.cpp
index 69b09bc..72fc9a8 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -28,6 +28,8 @@ void ThreadRPCServer2(void* parg);
 typedef Value(*rpcfn_type)(const Array& params, bool fHelp);
 extern map<string, rpcfn_type> mapCallTable;
 
+bool fInitializationCompleted = false;
+
 
 Object JSONRPCError(int code, const string& message)
 {
@@ -146,7 +148,6 @@ Value help(const Array& params, bool fHelp)
     return strRet;
 }
 
-
 Value stop(const Array& params, bool fHelp)
 {
     if (fHelp || params.size() != 0)
@@ -277,18 +278,22 @@ Value getinfo(const Array& params, bool fHelp)
 
     Object obj;
     obj.push_back(Pair("version",       (int)VERSION));
-    obj.push_back(Pair("balance",       (double)GetBalance() / (double)COIN));
-    obj.push_back(Pair("blocks",        (int)nBestHeight));
-    obj.push_back(Pair("connections",   (int)vNodes.size()));
-    obj.push_back(Pair("proxy",         (fUseProxy ? addrProxy.ToStringIPPort() : string())));
-    obj.push_back(Pair("generate",      (bool)fGenerateBitcoins));
-    obj.push_back(Pair("genproclimit",  (int)(fLimitProcessors ? nLimitProcessors : -1)));
-    obj.push_back(Pair("difficulty",    (double)GetDifficulty()));
-    obj.push_back(Pair("hashespersec",  gethashespersec(params, false)));
-    obj.push_back(Pair("testnet",       fTestNet));
-    obj.push_back(Pair("keypoololdest", (boost::int64_t)GetOldestKeyPoolTime()));
-    obj.push_back(Pair("paytxfee",      (double)nTransactionFee / (double)COIN));
-    obj.push_back(Pair("errors",        GetWarnings("statusbar")));
+    obj.push_back(Pair("isinitialized", (bool)fInitializationCompleted));
+    if (fInitializationCompleted)
+    {
+        obj.push_back(Pair("balance",       (double)GetBalance() / (double)COIN));
+        obj.push_back(Pair("blocks",        (int)nBestHeight));
+        obj.push_back(Pair("connections",   (int)vNodes.size()));
+        obj.push_back(Pair("proxy",         (fUseProxy ? addrProxy.ToStringIPPort() : string())));
+        obj.push_back(Pair("generate",      (bool)fGenerateBitcoins));
+        obj.push_back(Pair("genproclimit",  (int)(fLimitProcessors ? nLimitProcessors : -1)));
+        obj.push_back(Pair("difficulty",    (double)GetDifficulty()));
+        obj.push_back(Pair("hashespersec",  gethashespersec(params, false)));
+        obj.push_back(Pair("testnet",       fTestNet));
+        obj.push_back(Pair("keypoololdest", (boost::int64_t)GetOldestKeyPoolTime()));
+        obj.push_back(Pair("paytxfee",      (double)nTransactionFee / (double)COIN));
+        obj.push_back(Pair("errors",        GetWarnings("statusbar")));
+    }
     return obj;
 }
 
@@ -1806,6 +1811,8 @@ void ThreadRPCServer2(void* parg)
             if (valMethod.type() != str_type)
                 throw JSONRPCError(-32600, "Method must be a string");
             string strMethod = valMethod.get_str();
+            if (!fInitializationCompleted && strMethod != "help" && strMethod != "getinfo")
+                throw JSONRPCError(-42000, "Still initializing");
             if (strMethod != "getwork")
                 printf("ThreadRPCServer method=%s\n", strMethod.c_str());
 
diff --git a/rpc.h b/rpc.h
index 48a7b8a..85c3ef3 100644
--- a/rpc.h
+++ b/rpc.h
@@ -4,3 +4,4 @@
 
 void ThreadRPCServer(void* parg);
 int CommandLineRPC(int argc, char *argv[]);
+extern bool fInitializationCompleted;

PS plz add .patch to allowed attachments Cheesy
PSS upload folder is full! i cannot upload the patch file.
1838  Bitcoin / Development & Technical Discussion / Re: Payment to yourself detection on: February 13, 2011, 07:21:39 AM
ok thanks.
1839  Bitcoin / Development & Technical Discussion / Payment to yourself detection on: February 13, 2011, 04:26:25 AM
Can I guarantee that txids will only ever occur once or twice in listtransactions? IIRC I cannot, right? (because you can split payments or something- not too clear on this).
1840  Bitcoin / Development & Technical Discussion / Re: file_lock in python/Qt on: February 13, 2011, 01:36:09 AM
hrrnnngg... back to the top
Pages: « 1 ... 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 [92] 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 »
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!