Hi Tobias, * Yes, I have a full node server. The WalletAppKit of Bitcoinj contains function "connectToLocalHost()" but I don't know how to use. * * Other question: Can you tell me how to connect to a specify server? *
* Thanks for your help!* Vào 17:12:05 UTC+7 Thứ Tư, ngày 11 tháng 1 năm 2017, Tobias B. đã viết: > > Hi Minh, > > do you mean you run a bitcoin core full node locally and want to connect > bitcoinj to it? I didn't try that but you'll have to use a Peer instead of > a PeerGroup and configure the Peer with IP 127.0.0.1 I guess. > > @J-Miguel: I'll answer later today after work. > > Best regards, > > Tobias > > On Wednesday, January 11, 2017 at 5:25:34 AM UTC+1, Minh Le Quang wrote: >> >> Hi Tobias, >> * Can you tell me "how to user bitcoinj with my localhost"?* >> >> Best regards, >> >> Vào 05:26:38 UTC+7 Thứ Tư, ngày 11 tháng 1 năm 2017, Tobias B. đã viết: >>> >>> Hi J-Miguel, >>> >>> I'm doing excatly that for quite some time now: Using bitcoinj in the >>> backend of a spring boot webapplication (still in development). The a bit >>> frustrating thing I noticed is that bitcoinj is not really built to handle >>> the bitcoin payment logic for potentially many users. It's my impression >>> that it's really made for phone wallets or small scale bitcoin >>> applications. >>> In my post here >>> https://groups.google.com/forum/#!topic/bitcoinj/FFI0qtIl4PU you see >>> that it's not really possible to sync bitcoinj once you have a big number >>> of keys in your wallet (e.g. ~200k). Maybe that's possible once you run >>> your own full node and connect bitcoinj to it - I'm not sure. But also >>> bitcoinj can't "forget" old issued keys that you'll not expect to receive >>> payments to. So every address you ever issued and showed to a user will be >>> tracked for ever and cause a listener callback for every new block. So the >>> amount of work your application has to handle every 10 minutes will grow >>> over time. >>> >>> And yes I use the WalletAppKit class it bundles a lot of things like >>> saving the wallet to disk, connecting it to the peerGroup etc. I still >>> operate outside of the wallet logic, you have access to the internal >>> objects such as transactions, issued receive addresses via >>> walletKit.wallet() >>> >>> Best regards, >>> >>> Tobias >>> >>> Am Dienstag, 10. Januar 2017 21:59:55 UTC+1 schrieb jmiguel rodriguez: >>>> >>>> >>>> Hi, >>>> >>>> This is my first message here, so hello to everyone. And (many, many, >>>> many) thanks to Mr. Andreas Schilbach for this amazing piece of code. >>>> >>>> Well... I'm just starting playing int this arena so I'm a bit confused >>>> with all infrastructure (not with blockchain technology but with bitcoinj >>>> internals). As far as I can see, it looks bitcoinj it's more oriented to >>>> GUI (javafx, andrond) than webapps. At least, the WalletAppKit class look >>>> like that to me. >>>> >>>> Should I be able to use WalletAppKit for starting in a Web (Grails, >>>> Spingboot based) application?. Would it be better approach to use >>>> 'low-level' classes directly than alll the threaded and hellish callback >>>> GUI style?. If this is the best way, where could I find a good (updated) >>>> tutorial? >>>> >>>> Thank you all in advanced! >>>> >>>> >>>> regards, >>>> jmiguel >>>> >>>> -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
