Bitcoin Forum
September 07, 2025, 12:21:08 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 [1682] 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 ... 2548 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2761737 times)
ChuckOne
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

☕ NXT-4BTE-8Y4K-CDS2-6TB82


View Profile
February 14, 2014, 09:07:45 PM
 #33621

Does this mean that we are actually generating checkpoint files on all the nodes all the time? If so, how much work would it be to have newly installed nodes query for the most recent db files and start with that, instead of redownloading the entire blockchain. Of course, must be peer verified checksums, etc.
I don't understand what you mean by checkpoint file. The rest is a bad idea.


I think he means that nxt.h2.db could be considered a snapshot file.
mcjavar
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile
February 14, 2014, 09:09:19 PM
 #33622

Alias assignment being undone? I didn´t touch the client when this message came.
It is not because of something you did. The block that had to be popped off contained an alias assignment transaction. When a block is popped off, an attempt is made to undo all transactions in it. But this type of transaction cannot be undone, and in this case a full rescan of the blockchain is needed.

Thank you for clarification. How can a block "popp off"?
greyw00lf
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
February 14, 2014, 09:12:32 PM
 #33623

du says: 257480 for current nxt_db folder
What? Mine is 111M only.

Err:
Code:
pi@raspberrypi ~/nxt $ du -h nxt_db/
252M nxt_db/

Wrong usage of du?
I have:
Code:
pi@rpi ~/nxt $ du -h nxt_db/
246M nxt_db/
But i always copied the folder from one version to the next... maybe that's why?

greyw00lf
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
February 14, 2014, 09:14:53 PM
 #33624

Have you overclocked your Raspi?
No, i don't know if i will do that, i don't have anything to cool it (no heat sink...) and my pi is in an ordinary plastic-case.

jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1134


View Profile WWW
February 14, 2014, 09:15:35 PM
 #33625

Does this mean that we are actually generating checkpoint files on all the nodes all the time? If so, how much work would it be to have newly installed nodes query for the most recent db files and start with that, instead of redownloading the entire blockchain. Of course, must be peer verified checksums, etc.
I don't understand what you mean by checkpoint file. The rest is a bad idea.

It might be a bad idea, but the problem of how will small machines be able to keep up with 1000TPS volumes is unsolved.
checkpoint file would be "entire state of NXT blockchain" at specific intervals. I am assuming you are not storing the entire blockchain now that we have DB,but maybe that is incorrect?

Almost all NXT functions only need the most recent 1440 blocks, so if each machine kept those 1440 blocks locally, they can purge them after that. blockchain FIFO.

As the blockchain grows, it will take longer and longer for initial install. By having the entire state of NXT every hour, or even every day, in a decentralized peer validated form, would allow starting from the most recent hour (or day) and then start processing blocks from that point.

These two are totally independent technically, but combine to allow small raspis to continue forging and being full nodes
If checkpoint files are a bad idea, I can live with that. Is blockchain FIFO a bad idea too?

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
Jean-Luc
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250



View Profile WWW
February 14, 2014, 09:22:43 PM
 #33626

Code:
pi@raspberrypi ~/nxt $ du -h nxt_db/
252M nxt_db/
Wrong usage of du?
No. I guess the database needs vacuuming once in a while. I will do that at shutdown, it means stopping the server will take slightly longer.

lead Nxt developer, gpg key id: 0x811D6940E1E4240C
Nxt blockchain platform | Ardor blockchain platform | Ignis ICO
greyw00lf
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
February 14, 2014, 09:24:41 PM
 #33627

Thanks! I am reluctant about the overclocking, but I run it with -856xmx ...

What does -856xmx do?

It is the memory available to the jvm, I quoted it wrong:

ps -ax
 2040 ?        SNl   61:45 /usr/bin/java -Xms128m -Xmx856m -jar start.jar STOP.PORT=7873 STOP.KEY=0815


-Xms128m is the minimum that is reserved at the start, and -Xmx856m is the maximum it can have, in megabytes. I often had crashes with a maximum smaller 450MB, but with giving it almost all the memory, it runs quite good.

Except that dl'ing the whole blockcahin is quite some venture.
i use -Xms320m -Xmx480m
how can you give it 856m? Don't you have a pi with 512MB? Or are you using swap? Or an other device?

Jean-Luc
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250



View Profile WWW
February 14, 2014, 09:25:43 PM
 #33628

Thank you for clarification. How can a block "popp off"?
With a little help from a stronger block that kicks him out Smiley

Only one block can be at the end of the chain, but multiple nodes try to generate blocks at the same time. The better one wins, if the other was attached first it gets popped off.

lead Nxt developer, gpg key id: 0x811D6940E1E4240C
Nxt blockchain platform | Ardor blockchain platform | Ignis ICO
Jean-Luc
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250



View Profile WWW
February 14, 2014, 09:31:24 PM
 #33629

I am assuming you are not storing the entire blockchain now that we have DB,but maybe that is incorrect?

Almost all NXT functions only need the most recent 1440 blocks, so if each machine kept those 1440 blocks locally, they can purge them after that. blockchain FIFO.

If checkpoint files are a bad idea, I can live with that. Is blockchain FIFO a bad idea too?
Of course I store the whole blockchain, this is what the db contains.

You seem to be talking about blockchain trimming or pruning. This is in the plans, but not that soon.

Downloading the whole db will take longer than just the blockchain.

lead Nxt developer, gpg key id: 0x811D6940E1E4240C
Nxt blockchain platform | Ardor blockchain platform | Ignis ICO
mcjavar
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile
February 14, 2014, 09:33:53 PM
 #33630

Thank you for clarification. How can a block "popp off"?
With a little help from a stronger block that kicks him out Smiley

Only one block can be at the end of the chain, but multiple nodes try to generate blocks at the same time. The better one wins, if the other was attached first it gets popped off.


Thank you!
Who decides (and how) which block is "better"?
ChuckOne
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

☕ NXT-4BTE-8Y4K-CDS2-6TB82


View Profile
February 14, 2014, 09:34:16 PM
 #33631

Complexity of signing is O(1).

That is plain wrong. The more bits you have to sign the longer signing takes. The question is: how long in terms of the input length.

We would have O(n) if Sign(32_bytes) == Sign(64_bytes) / 2. Actually we have Sign(32_bytes) == Sign(3200_bytes) / 2, so it's more like O(1). Right?

Sorry, still wrong.

It looks more like O(log n) but don't think so, as the whole input has to be read. That still takes O(n).
ChuckOne
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

☕ NXT-4BTE-8Y4K-CDS2-6TB82


View Profile
February 14, 2014, 09:38:51 PM
 #33632

Code:
pi@raspberrypi ~/nxt $ du -h nxt_db/
252M nxt_db/
Wrong usage of du?
No. I guess the database needs vacuuming once in a while. I will do that at shutdown, it means stopping the server will take slightly longer.

As long as there is feedback in the nxt.log. No problem.

Would be great if you could add something like a progess counter to scanning, too. Maybe:
10%
20%
30%
...

Just to see, that it's still working and not running for nothing.
ChuckOne
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

☕ NXT-4BTE-8Y4K-CDS2-6TB82


View Profile
February 14, 2014, 09:40:58 PM
 #33633

Thank you for clarification. How can a block "popp off"?
With a little help from a stronger block that kicks him out Smiley

Only one block can be at the end of the chain, but multiple nodes try to generate blocks at the same time. The better one wins, if the other was attached first it gets popped off.


Thank you!
Who decides (and how) which block is "better"?

That should be part of the advanced consensus. On part of it: stick to the branch on which you got a higher balance.
Jean-Luc
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250



View Profile WWW
February 14, 2014, 09:41:35 PM
 #33634

Who decides (and how) which block is "better"?
Each node decides for itself. Eventually they have to agree. The block with higher cumulative difficulty is considered better.

lead Nxt developer, gpg key id: 0x811D6940E1E4240C
Nxt blockchain platform | Ardor blockchain platform | Ignis ICO
mcjavar
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile
February 14, 2014, 09:42:53 PM
 #33635

Who decides (and how) which block is "better"?
Each node decides for itself. Eventually they have to agree. The block with higher cumulative difficulty is considered better.


Thanks!
ChuckOne
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

☕ NXT-4BTE-8Y4K-CDS2-6TB82


View Profile
February 14, 2014, 09:43:12 PM
 #33636

Who decides (and how) which block is "better"?
Each node decides for itself. Eventually they have to agree. The block with higher cumulative difficulty is considered better.


cumulative difficulty == target?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
February 14, 2014, 09:43:52 PM
 #33637

Complexity of signing is O(1).

That is plain wrong. The more bits you have to sign the longer signing takes. The question is: how long in terms of the input length.

We would have O(n) if Sign(32_bytes) == Sign(64_bytes) / 2. Actually we have Sign(32_bytes) == Sign(3200_bytes) / 2, so it's more like O(1). Right?

Sorry, still wrong.

It looks more like O(log n) but don't think so, as the whole input has to be read. That still takes O(n).

If we count time to read the input then we should count header processing time too. What about a compromise at O(log log n)? Smiley
ChuckOne
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250

☕ NXT-4BTE-8Y4K-CDS2-6TB82


View Profile
February 14, 2014, 09:52:53 PM
 #33638

Complexity of signing is O(1).

That is plain wrong. The more bits you have to sign the longer signing takes. The question is: how long in terms of the input length.

We would have O(n) if Sign(32_bytes) == Sign(64_bytes) / 2. Actually we have Sign(32_bytes) == Sign(3200_bytes) / 2, so it's more like O(1). Right?

Sorry, still wrong.

It looks more like O(log n) but don't think so, as the whole input has to be read. That still takes O(n).

If we count time to read the input then we should count header processing time too. What about a compromise at O(log log n)? Smiley

Well. No. Cheesy It's like a mathematical proof. Wink

E.g. if you want to XOR all byte of the input onto the same variable, you need O(n) because you are reading the input. As simple as that.

When making compromises, let's just assume Qubic is safe. I think it's rather 66% safe as instead of 51%, agreed? I mean 66% is even easier to remember.
l8orre
Legendary
*
Offline Offline

Activity: 1186
Merit: 1018


View Profile
February 14, 2014, 09:57:06 PM
 #33639

du says: 257480 for current nxt_db folder
What? Mine is 111M only.

Err:
Code:
pi@raspberrypi ~/nxt $ du -h nxt_db/
252M nxt_db/

Wrong usage of du?


Mine says 114M - still on 0.7.4

du -h

114M   ./nxt_db

jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1134


View Profile WWW
February 14, 2014, 09:59:25 PM
 #33640

I am assuming you are not storing the entire blockchain now that we have DB,but maybe that is incorrect?

Almost all NXT functions only need the most recent 1440 blocks, so if each machine kept those 1440 blocks locally, they can purge them after that. blockchain FIFO.

If checkpoint files are a bad idea, I can live with that. Is blockchain FIFO a bad idea too?
Of course I store the whole blockchain, this is what the db contains.

You seem to be talking about blockchain trimming or pruning. This is in the plans, but not that soon.

Downloading the whole db will take longer than just the blockchain.
I am sorry about not knowing the obvious, still pretty new to crypto, past 10 weeks have been a steep learning curve.

It sounds like you dont have anything against blockchain FIFO. If it is in a DB, I thought it would just be a matter of a single DB call to delete all entries older than fifosize. this is not critical now, but I need to know about how long it will take to get a solution to the HDD storage problem that will hit us when we get to 1000TPS. Many nodes will want to just be able to be current, but not need to provide the entire blockchain to the peers. Just a parameter in web.xml to control fifo size. Anyway just planning for how we get from here to 1000TPS.

It sounds like there is no convenient "state of entire NXT network", so any checkpointing will be a lot of work. Not a problem now either, but after a few months of 1000TPS, no node with less than 1mbps will ever be able to catch up. Again, just planning for future growth.

James

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
Pages: « 1 ... 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 [1682] 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 ... 2548 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!