Nodejs digital currency
Policies and regulations
a node is a network node in the blockchain distributed ledger system. By connecting servers, computers and other devices through the network, different types of blockchains have different ways to become nodes. For example, bitcoin participates in trading and mining, and EOS participates in election campaign to become a node
the following is what is a bitcoin full node
bitcoin full node is the node that downloads and preserves complete blockchain data by loading bitcoin clients (including bitcoin unlimited and bitcoin)
because of the congestion of the blockchain transaction network, the author solves the problem by adjusting the broadcast communication, information encryption and decryption, consensus mechanism and transaction verification mechanism. In the whole bitcoin network, from miners to ordinary users can be regarded as a node in the bitcoin network, but because bitcoin has the characteristics of multi centralization, In the whole network, its important role is "bitcoin all nodes."
Generally speaking, there are not many technologies available for blockchain development. The mainstream development languages are generally divided into the following four types. Different development languages require different timely configuration. You can also visit the blockchain development language selection.
first, go language is selected for development. The high concurrency of go language is very suitable for blockchain development
Secondly, C + + language and C + + technology are mature and fast Thirdly, Java language Four is, node, JSpopularity: there is no doubt that bitcoin and lightcoin have the highest popularity in the cryptocurrency circle. Even though they have many shortcomings, they still have the largest number of players and the highest amount of money. They have large plates and are not easy to be controlled by the makers. Of course, the relevant infrastructure is relatively perfect
Innovation: dog coin is popular because it caters to the western small reward culture. The reason why Fuyuan coin can become the leader of the new generation of cryptocurrency is that it mainly focuses on the currency business circle, which is an applied cryptocurrency
operation mode: for example, the operation mode of Vicat coin has been exposed as pyramid selling. Although Yuanbao coin has been criticized before, the operation team will not give up, and Yuanbao coin is still the leader of domestic currency.
Currency field types generally include int, float, money / smallmoney, decimal / numeric
select according to the accuracy of the stored data:
int can only store integer money
Themoney / smallmoney data types are accurate to one ten thousandth of the monetary unit they represent
decimal / numberic can customize the decimal places and the data precision that can be stored, so generally more people use this type
float is not suitable for currency which needs precise value
conclusion:
it is best to use money and decimal types in finance
if it is a simple calculation, the float type can be used, but the data fetched by the float type on some platforms is not so accurate, and the accuracy may be lost. Therefore, if the cost is not great in a stable performance platform, it is recommended to use the above two types
extended data:
SQL data type:
1, bit integer
bit data type is integer, its value can only be 0, 1 or null. This data type is used to store data with only two possible values, such as yes or no, true or false, on or off.
note: it is a data type that saves a lot of space. If it can meet the requirements, it should be used as much as possible
The 2, tinyint integer
tinyint data type can store integers from 0 to 255. It's useful when you're only going to store a limited number of values. This data type occupies 1 byte in the database
The 3, smallint integer
smallint data type can store integers from the 15th power (- 32768) of - 2 to the 15th power (32767) of 2. This kind of data type is very useful for storing some numerical data which is often limited in a specific range. This data type takes up two bytes of space in the database
The4, int integer
int data type can store integers from the 31st power of - 2 (- 2147483648) to the 31st power of 2 (2147483647). Almost all numerical data stored in the database can use this data type. This data type takes up four bytes in the database
The5, decimal precise numerical type
decimal data type can be used to store numerical data with fixed precision and range from - 10 to - 10. When using this data type, you must specify the range and precision. The range is the total number of digits that can be stored around the decimal point. Precision is the number of digits stored to the right of the decimal point
Numerical data type is similar to decimal7, smallmoney
smallmoney data type is used to represent money and monetary value. This data type can store data from - 214748.3648 to 214748.3647, accurate to one ten thousandth of the monetary unit
8, money type
money data type is used to express money and monetary value. This data type can store data from - 922 billion to 922 billion, accurate to one ten thousandth of the monetary unit
9, float approximate value type
float data type is an approximate value type for floating-point numbers. Floating point numbers are approximate because not all numbers in their range can be expressed accurately. Floating point numbers can be any number from - 1.79e + 308 to 1.79e + 308
10, real approximate value
real data type is similar to floating-point number, it is approximate value type. It can represent floating-point numbers with values between - 3.40e + 38 and 3.40e + 38
Compared with bitcoin's prestige, although the rise of the value of ether currency is more terrible than that at the beginning of the year, its reputation and market scale are still inferior to bitcoin. Peter szilagyi, director of bitcoin development team, brought the data of Ethernet network nodes to Google Earth to tell you clearly how Ethernet will dominate the digital currency world in the future
in the two years since its birth, Ethereum has rapidly occupied the rich countries or regions in the world
if we compare the richer regions in the world, such as Europe and North America, with the poorer regions in Asia and South America, & quot; In an email interview with CNBC, szilagyi wrote: & lt; You will find that the density of active nodes is related to the transportation convenience, instrialization and affluence of the region. In my opinion, this correlation is e to the relatively concentrated resources required for the full operation of Ethereum& rdquo;