Bitcoin Forum
June 26, 2024, 10:14:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 [5]
81  Other / Beginners & Help / Re: Integrate Bitcoin payment into my node app. Where to start? on: July 27, 2014, 11:28:07 PM
In this case I would recommend you use one bitcoind and have one payment processing script that calls listtransactions for both of the apps. Otherwise, you'll want to have another VM running another instance of bitcoind.
82  Other / Beginners & Help / Re: Integrate Bitcoin payment into my node app. Where to start? on: July 27, 2014, 08:05:04 PM
How do I track incoming payments by txid if they haven't made a payment yet?
I'm assuming you'll have some sort of invoice id so you can attach a payment address to that invoice record to start. Then once a payment comes in and has enough confirmations you can create a record in a payments_received table and that should use address-txid as the primary key.

Quote
How do I generate a new address? I don't think I need to worry about large quantities at this point, since I don't expect very many transactions in the beginning.
just call the json-rpc command 'getnewaddress'. From the command line it'd just be "bitcoind getnewaddress".

Quote
I'm assuming listtransactions can take an address as an argument?

listtransactions doesn't actually take addresses as an argument. What you can do though is tell it to show the last 500 transactions and if volume is low as you assume, then you'll never miss one. I've used this method on several sites and it works.

for example: bitcoind listtransactions "*" 500

Quote
If I get something basic working, I will definitely release as an NPM module.

Good to know. Good luck!
83  Other / Beginners & Help / Re: How much Bitcoin would you like to have at the end of 2015? on: July 27, 2014, 06:39:57 PM
I would like to have 0.5 bitcoins. Hopefully the price will stay low enough that I can make it.
84  Other / Beginners & Help / Re: Everyone of my friends says the same: "How do I get Bitcoins?" on: July 27, 2014, 06:24:09 PM
You should come up with a list of jobs they can do for you and put a BTC price on each one. They need to understand that bitcoins aren't free so they should not expect to get them for doing almost nothing.
85  Other / Beginners & Help / Re: At what point (hash) is solo mining viable? on: July 27, 2014, 06:16:41 PM
You can actually see mining as a sort of lottery. You can solo mine with any amount, you just have to be ok with the resulting odds. The other factor however is that the price of BTC and difficulty both change to likely make your odds less and less over time. Mining pools help you follow the "bird in the hand" quote. If I were solo mining, I'd want to make sure I had a chance at getting a few blocks each difficulty period so once every 500 blocks or 0.2% or 294 TH (for 147,000 TH average hashrate today).
86  Other / Beginners & Help / Re: Need Help on: July 27, 2014, 05:57:44 PM
Just wanted to agree with everyone else that mining is high risk, low reward. Work harder in real life and buy the coins that way. It's the best way to but feel free to do the math yourself. Just realize bitcoins aren't created out of thin air and are not "easy money". If there is a unique opportunity it's not in mining, it's in buying and holding for 12-24 months or longer.
87  Other / Off-topic / Re: VPNs - do you use it on: July 27, 2014, 05:50:48 PM
The problem with VPNs is that we must assume attackers are capturing every packet on each side of those VPNs. With timing analysis, any substantial amount of time, it is probably possible to deanonymize the traffic flows. VPNs do help on the local side though. Your ISP and the guy sipping a latte next to you would be hard pressed to figure out exactly what you're doing online. Facebook and Google probably still know though unless you disable cookies and other ways to fingerprint your internet applications.
88  Other / Beginners & Help / Re: Someone sent me 0.0136 free? on: July 27, 2014, 05:41:05 PM
OP, good idea to reset the phone but how do you think you may have been compromised? Is it rooted? Did you sideload any apps or install any from outside the play store? Did the phone every go to websites you didn't ask it to? What version of android were you on? It's important to get to the bottom of these compromises because they could lead to significant losses for someone else.
89  Other / Beginners & Help / Re: 51% problem still existant after all coins have been mined ? on: July 27, 2014, 05:34:53 PM
The key defence to problems of miner concentration is keeping the hashrate distributed among unrelated pools. People cite 40% or 30% as a threshold but really it should be lower. That is you need to ensure that n parties cannot collude to do this attack. For the case of n = 3, you get 100/6 or 16.7% as a threshold value. I suppose as the mining community matures even lower thresholds will be seen as prerequisite policy. Things also tend to settle down when hashrate isn't increasing like a mofo.

Whether tx fees will be enough remains to be seen but if enough commerce will ever support it, 30-100 years should be enough time to get there. It's only been 20 or so years since the Internet started to become widely used.
90  Other / Beginners & Help / Re: Integrate Bitcoin payment into my node app. Where to start? on: July 27, 2014, 06:53:25 AM
Bitcoind certainly does have a wallet. You can even pre-generate the addresses by the hundreds or thousands to less the load when a new customer appears. Use listtransactions and watch that payments have as many confirmations as you want before moving your payment process status along.

Also be sure to track incoming payments by txid and address together as transactions can have multiple outputs. That should help you in the future in case a customer gets tricky with their payments.

I don't know anything about node but since you're developing this yourself, I think there's value in using few modules and publishing your code (if you so choose).
91  Other / Beginners & Help / Re: Someone sent me 0.0136 free? on: July 27, 2014, 06:45:23 AM
Be careful OP, it sounds like you'll lose more in the future unless you figure out where your compromise is.
92  Other / Beginners & Help / Re: How much is a normal amount to mine a day? on: July 27, 2014, 06:37:22 AM
Mining is a crap shoot. I used to think people poo-pooed mining out of respect for their own profits but all the recent ASIC advances have made it hell for everyone. Pre-orders and scams have sapped tons of value from the cryptoeconomy.

Unless you take a chance and get lucky on next gen hardware or are prepared to go world-class and create your own hardware, you're going to have a bad time at worst and a marginal time at best.

Good luck all the same!
93  Other / Off-topic / Re: VPNs - do you use it on: July 27, 2014, 06:31:07 AM
No third-party VPNs for me but ssh tunneling or vpn of some sort is a must if at public wifi. The more people use any of these anonymizing services the better for everyone. Use TOR. Also check out projects like i2p and cjdns to see where things can be going.
94  Other / Off-topic / Re: FREE Hugs on: July 27, 2014, 06:21:17 AM
I love this thread and I love you all. I would appreciate a hug.
Pages: « 1 2 3 4 [5]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!