Bitcoin Forum
May 29, 2024, 03:03:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 »
101  Bitcoin / Development & Technical Discussion / Re: How to run seperate wallet on same server? on: May 03, 2018, 07:42:14 AM
So I don't understand well.

So eventually, I want to run few hundreds or more seperate some alt-coin's wallet(litecoin cloned) in same server.

How to do this?

Different rpcport, p2pport, datadir each other? If port is different, they can't each other communicate and connect, isn't it?

And if datadir is different, so then all datadir will have same block data maybe?



102  Bitcoin / Development & Technical Discussion / Re: Bitcoin [ sendtoaddress ] command? on: May 03, 2018, 07:36:25 AM

No!

This is the type of confusion that happens when people try to use the accounting system in Bitcoin Core instead of implementing their own accounting system.

Bitcoin Core will just as likely choose to use bitcoins that were previously received at an account that currently has a 0 (or even negative) balance.

Think about this like a bank.

Imagine you deposit $200 into YOUR ACCOUNT at the bank, and I deposit $500 into MY ACCOUNT at the same bank.  Now imagine that I return the next day and withdraw $200 from MY ACCOUNT.  Am I going to get those exact same bills from the bank that I gave them?  No.  The bank mixes the bills all up internally and stores them all together in a vault without any indication as to which bills were deposited into which account.  The account is just a number that is updated when the deposit is made.  After that, the actual money has NO CONNECTION to the account at all.  When I withdraw $200, I might get some of my original bills, I might get some of your original bills. It doesn't matter.  Regardless of which bills I get, MY ACCOUNT will be reduced by the amount that I withdraw.

Bitcoin Core accounts work the same way.  When you "receive at an account" the account value is increased, but the bitcoins are not in any way tied to that account.  When you "send from account", the account value is decreased, but the bitcoins themselves just come from the total bitcoins under the control of the wallet.  Some of the bitcoins sent MIGHT be the same bitcoins that were received at that account, some of the bitcoins sent MIGHT have been received at other accounts. It doesn't matter.  Regardless of which actual bitcoins are sent, the account that is being "sent from" will be reduced by the amount sent.
 
Thanks for clarification.
103  Bitcoin / Development & Technical Discussion / Re: If initiate sending bitcoin, it can't be reversible? on: May 03, 2018, 07:04:01 AM

If the block that confirms the transaction is orphaned, and the transaction is not in the replacement block, then it will return to unconfirmed status.  If a competing transaction that spends the same inputs is confirmed in the replacement block (or any future block) then the original transaction will become invalid and will vanish.  In this way the original transaction can be effectively "reversed" or "cancelled".

So how much probability this orphaned block can happen? And if it happen, it does not sent to receiver actually?

I found that orphaned block occured few times in a month at last year (2017-04), but from then to now, no orphaned block occured. Why?
104  Bitcoin / Development & Technical Discussion / Wallet address's account needed? To manage users. on: May 03, 2018, 03:59:39 AM
If there is one coin daemon running, and at that same server, users will join, then issueing addresses to each users.

Then if I want the users can send & receive to/from his address, when I issue address to user, should I attach account string value to that issues address?

105  Bitcoin / Development & Technical Discussion / Re: How to use [ sendmany ] [ sendfrom ] command? on: May 02, 2018, 02:10:33 AM
I believe the "account" system is deprecated in Bitcoin Core.

If you want accounts, you should implement them yourself in your own external system.  The functionality of the Bitcoin Core accounting system is limited in scope, and most people make bad assumptions about how it works.



So sendfrom and sendmany requires account? So this deprecated reason is there is no need to maintain account? Then just use these commands like sendfrom "" (blank space of account variable) is ok?

106  Bitcoin / Development & Technical Discussion / How to use [ sendmany ] [ sendfrom ] command? on: May 02, 2018, 12:58:09 AM
This wiki says,
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

[sendmany] , [sendfrom] command requires specific [ fromaccount ] variable?

Then, when bitcoin daemon installed, there is no default account? maybe.

Then, I need to set account (something like "admin") to some address first?

For use [sendmany] command.

107  Bitcoin / Development & Technical Discussion / Re: wallet.dat encrypt by multiple users question on: May 02, 2018, 12:39:45 AM
There is situation like who want to sell whole wallet itself. Why just send whole coin through blockchain? Because there is limit of 100 million amount at send function.
There is no maximum limit. Unless there is some arbitrary limit set by your wallet. If this is the case, simply send multiple transactions. If you don't transfer the BTC using a transaction, it will NOT be secured by the network and cryptographic security features Bitcoin provides. There is nothing to stop someone simply keeping a copy of the wallet file and spending the coins themselves. The only secure way to transfer Bitcoin to another party is by creating, signing and broadcasting a transaction and waiting for it to be confirmed.

In any case, a max limit of 100 million is fine... as there will only ever be 21 million BTC Tongue
Altcoin's case that has way more max supply than 100 millions.
108  Bitcoin / Development & Technical Discussion / Re: What is benefit of using paid API? on: May 02, 2018, 12:31:49 AM
How many time saving if use it?

This fully depends on the amount of requests you are going to do and the kind of your alternative setup you would be using.
Without those two factors no comparision can be made.

For exchange.
109  Bitcoin / Development & Technical Discussion / Re: Bitcoin [ sendtoaddress ] command? on: May 02, 2018, 12:16:02 AM
By "account" do you mean accounts with different HD seed & different addresses, or do you mean other addresses in the wallet.
If it's the former then
Code:
sendtoaddress
doesn't support accounts and will send from the default account ""

If it's the latter it just select UTXOs and spends according to the amount being sent.

So I want to know both cases (HD wallet and old wallet).

And account does not need maybe? When exchange's wallet, when issue address to user, attach that user's ID to address.

110  Bitcoin / Development & Technical Discussion / Bitcoin [ sendtoaddress ] command? on: May 01, 2018, 10:51:20 AM
As far as I know,

If some send bitcoin by this command, [ sendtoaddress ],

then wallet decide where to pull bitcoin remaining balance from any inside accounts?



111  Bitcoin / Bitcoin Discussion / Can we know specific bitcoin is stolen goods? on: May 01, 2018, 03:42:34 AM
For example, if some guy approach me and he want to sell bitcoin at low price, but big amount,

is this acceptable? or not? Why?
112  Bitcoin / Development & Technical Discussion / Re: What is benefit of using paid API? on: May 01, 2018, 03:40:24 AM
Most of them are rate limited or have a quicker update frequency for paid users. So let's imagine that you have an app that it's using a specific API to show the price of Bitcoin and there are 10k people refreshing it. You will soon get rate limited for too many requests and the API will stop giving you data. This won't happen if you have a paid API with an huge/unlimited number of requests per minute.
Then crypto exchanges uses those paid API?
113  Bitcoin / Development & Technical Discussion / What is benefit of using paid API? on: May 01, 2018, 02:57:07 AM
I found there are several paid bitcoin API services.

They charge based on API request numbers.

Why they exist? Is it useful? Time saver?

How many time saving if use it?

114  Bitcoin / Development & Technical Discussion / Re: If initiate sending bitcoin, it can't be reversible? on: May 01, 2018, 12:50:47 AM

When he sees enough confirmations to meets his risk tolerance. Each receiver needs to decide for themselves how many confirmations they need to feel comfortable with any specific transaction.  That will depend on may conditions, such as:
  • What is the risk tolerance of the receiver?
  • What is the value of the transaction?
  • Does the receiver have an existing trust-relationship with the sender?
  • Does the receiver have valid identifying information about the sender (name, address, phone, etc)?
  • Does the receiver have an alternate method to extract payment from the sender (lawsuit, credit card on file, deposit on hold, etc)?
  • Did any popular node software recently release a software update?

Generally (unless the transaction is millions of dollars) 2 or 3 confirmations will be fine. In some cases 1 or 0 confirmations might be acceptable.
 
Thanks.

So receiver doesn't know all of senders.

And some sender can send few thousand dollar or even over 100,000$.

So then, at least 2 or 3 confirmations needed? Then wait for at least 30 minutes?

And how to make automatic process when bitcoin daemon receive, it command to webpage refresh (increase sender's bitcoin balance at webpage).

115  Bitcoin / Development & Technical Discussion / Re: If initiate sending bitcoin, it can't be reversible? on: April 30, 2018, 02:57:18 PM

The transaction remains unconfirmed until it is included in a block in the blockchain.  A new block is added to the block chain on average every 10 minutes, but it can sometimes be much faster (even just a few seconds) or much longer (even more than an hour).  The amount of time between blocks is completely random with the average over many blocks being approximately 10 minutes.

If the transaction is included in the block, then it is confirmed when the block is added to the blockchain.  If the transaction is NOT included in the block, then it must continue to wait.
Thanks.
And when it happens, that transaction will not be confirmed and bitcoin will return back to sender?
No.
When a block is orphaned, the transaction might ALSO be in the new block.  In that case, it is still confirmed.
When a block is orphaned, if the transaction is not in the new block, then it must continue to wait for confirmation.

As long as the transaction is valid, it can still be confirmed.  There is no way to stop a valid transaction from being confirmed.  The bitcoins never "return to the sender".

However, if the transaction is not yet confirmed, then it is sometimes possible for the sender to send a new transaction that spends the same bitcoins.  Since a transaction output can ONLY be spent once, it is not possible for BOTH of the transactions to confirm.  When one of them confirms, then the other will be invalid.

[if the transaction is not yet confirmed, ] -> how long time it need to wait for make this sentence true?
 
[then it is sometimes possible for the sender to send a new transaction ] -> exactly when that is possible?


All this question boils down to this issue.

From point of view of bitcoin receiver, when he should recognize incoming bitcoin as sure thing?

1. When bitcoin daemon knows? I tested with bitcoin daemon testnet, the balance of receiving bitcoin address recognize its own balance after 6 ~ 8 confirmations.

2. When that transaction earn at least 1 confirmation?

3. When that transaction earn at least 6 or more confirmation? (if this is true, why?)
116  Bitcoin / Development & Technical Discussion / Re: wallet.dat encrypt by multiple users question on: April 30, 2018, 02:30:44 PM
If I give over my wallet.dat file to another guy.

Then he and me can use from same wallet. First users can use balance at that usage time, right?

Then what happen if one user encrypt it?

Other user can't use? First person who do encryption wins? Because he only know password?
Obviously, one person's encryption can't affect the use of another person.
Bitcoin determines ownership through a private key. You give the wallet to another person. The other party already knows your private key and can transfer your funds.
You are now encrypting the private key. When you use it, you still need to decrypt the private key. So your encryption has absolutely no effect on other people who already know your private key.
Remember: Don't give your private key to anyone.
There is situation like who want to sell whole wallet itself. Why just send whole coin through blockchain? Because there is limit of 100 million amount at send function.
117  Bitcoin / Development & Technical Discussion / Re: How exchanges make wallet adresses? on: April 30, 2018, 02:22:17 PM
  then you will need to build a small bot to periodically check the balances of the receiving addresses, and then make a payment to the wallet address
How to make this automatic monitoring and doing some commands part?
Using linux shell programming and event? Then how to get object of bitcoin daemon?
118  Other / Beginners & Help / Re: How is exchange's wallet structure? on: April 27, 2018, 08:36:18 AM
A wallet, in its simplest form, is a collection of private keys. Depending on the wallet software those may be stored in a wallet file or generated on the fly (ie. only the wallet seed is stored and private keys / addresses are derived as requested). Assuming a full node, this wallet software also checks for incoming and outgoing transactions.
The Bitcoin daemon is a headless wallet, that is: Instead of a GUI for users to click on, it provides an interface for other software to talk with.
Thanks for reply.
So how to consist exchange's wallet then?
Running a full node(really need to run as full node? how to know it is now full node?) of newest bitcoin node (0.16 version) support HD wallet, make bunch of addresses before, and when user join, assign one address to each user and store its info (what address belong to what user ID) to own DB?

Then this one exchange wallet (bitcoin daemon running on exchange's one physical server) has all the access to each user's addresses and its balance and can send to another address?

119  Bitcoin / Development & Technical Discussion / Re: How to run seperate wallet on same server? on: April 27, 2018, 07:07:27 AM
I would never run a Bitcoin wallet on a VPS. There have been cases in the past where the people running the VPS have stolen money. I'd only do it unless you're doing it with a very well known provider.
So VPS service provider themselves are thief? And they can see whole server's whats going on? So how much money he was stolen?
120  Bitcoin / Development & Technical Discussion / If initiate sending bitcoin, it can't be reversible? on: April 27, 2018, 06:31:59 AM
As far as I know, when someone confirm send bitcoin, it immediately registered at blockchain, and waiting for confirm status, right?

Then from there, always 100% it will be confirmed after 10 around minutes?

I heard about orphaned block, how often frequently it happens?

And when it happens, that transaction will not be confirmed and bitcoin will return back to sender?

Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!