PHP programming virtual currency
I borrowed 100000 yuan when I was only 16 years old; It's an astronomical number. I'm so bold; A Suzhou mother looked at her son and couldn't restrain her emotion any more. The boy knew that he had done something wrong, stood aside and didn't say a word. She felt guilty and wronged on her childish face{ RRRRR}
as a minor, you should be more cautious and careful when you have a good imagination of the society. There are many good people in this world, but there are also some people with ulterior minds who communicate with their parents when they are not sure. They are the only people in the world who don't ask for your return. As the Spring Festival approaches, swindlers wait for the opportunity to celebrate the Chinese New Year
let me analyze it:
1: bitcoin has been broken in China, and its price has dropped sharply, which is unexpected by the global mining pool
2: compared with the current mining cost of bitcoin, it makes money entirely by cheap electricity bills
3: there are only 21 million bitcoins, and most of them have been g up in the early stage, which makes it difficult to dig those bitcoins that have not been g up in the future, and there is too much competition. Many small mines are in a state of loss
and why do many well-known mines turn to TCD
first of all, bitcoin is the optimized and upgraded version of bitcoin, with a constant number of 100 million. The early mining is very good. Unlike bitcoin, which has too high cost and low cost performance ratio, it is appropriate to use bitcoin as a supplement to compare bitcoin. Bitcoin is used for large amount payment and bitcoin is used for small amount payment.
In addition to the complete implementation of bitcoin's core protocol, bitcoin node software also includes an optional but important function mole -- Wallet:
you can regard the wallet as a safe to store all your keys and addresses, and also encapsulate many technical concepts and details of bitcoin, So that it can be understood and accepted by people other than geeks. Therefore, bitcoin enables node wallet by default. If you want to disable the wallet function, for example, you can set the disablewallet option in the configuration file:
disablewallet = 1
the wallet mole will track all address related transactions managed by it, so it can update the balance information of the wallet in time. This function is very important because there is no concept of account in bitcoin. Bitcoin is e-cash scattered among transactions. If there is no wallet to help track transactions related to our address, it is difficult to figure out how many bitcoins we hold in total
Many RPC calls provided bynodes are implemented by wallet mole. For example, when we call the getnewaddress command, the wallet mole generates the key and address and automatically adds them to the wallet, so its related transactions will automatically affect the balance of the wallet. Similarly, when we call getbalance, the wallet mole will collect the bitcoin on all addresses and return the total amount
the above content is extracted from: bitcoin development course
if you don't understand, I suggest you learn it;
first block (delete) all the function codes of the whole program, leaving only the basic framework running. If CPU usage is still high, it's not your program's problem; Otherwise, it will prove that your program takes up a lot of CPU. Continue with the following steps
restore half of the function code to its original state and block the other half of the function; If the CPU usage is high at runtime, the problem occurs in the code that you don't shield The other half of the code may have problems, just check the other way around.)
divide the problematic code into two parts, shield one part, and see if the CPU is running very high...
if so, you can quickly locate the problem through the dichotomy of half and half again.
Add a hidden field to the form on the registration page; inputtype=" hidden" name=" uid" value="& lt;? phpecho$_ GET[' uid']? intval($_ GET[' uid']): 39; 39;;?& gt;& quot;& gt; Pre >
when we register for a member, we will have a member ID value, and use this ID value to transfer the value
for example, when I register on my registration page, register. PHP
invite friends to register, we can generate a URL, such as / register. PHP? Uid = 123
uid = 123, which is the ID value of the invitee
when the invitee clicks this link, the hidden field name = & quot; uid" If there is a value, we register post and submit it to the background for processing,
background judgment$_ POST[' uid'] If it is empty, it is an invitation,
register successfully, and then write SQL statements to both parties to update the gold coin value
hope to adopt thx