Bitcoin Forum
October 17, 2019, 07:15:47 PM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 [1790] 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 ... 2567 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2756221 times)
Jean-Luc
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250



View Profile WWW
February 20, 2014, 11:13:22 AM
 #35781

Will the interfaces for the major components (Account, Transaction, Peer etc..) stay roughly the same?
Also the listener interfaces, will they remain?
Some of them. There are two big changes. First, Nxt is no longer a servlet and does not need to follow the servlet init/destroy lifecycle anymore. It is initialized reading its properties from nxt.properties instead of web.xml. If needed, it will start a PeerServlet that accepts peer-to-peer requests, an APIServlet that serves http/json API requests, and a UserServlet that supports the current NRS javascript client. You can disable all of those in the properties file, so if you are only using the Java API, and don't have a public IP on which to accept incoming peer requests, you will not be running any servlets at all.

Second, I am making Block, Transaction, and Blockchain, interfaces. The current Blockchain class is a bunch of static methods, I am splitting those into BlockchainProcessor, TransactionProcessor, and Blockchain/BlockchainImpl classes. All those will be singletons instead of collections of static methods, which I believe is more flexible in the long term.

Peer has also been split into Peer (an interface), PeerImpl (package-local implementation), and Peers (static methods that handle the whole set of peers).

Account, Asset, Order, Alias, etc, will not change for now. In the future I will have to move them to the database, so I don't want to waste time refactoring them now only to change them again later.

I will try to keep the Listener interfaces, and see how I can use them to accommodate your request for monitoring the initialization steps too.

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

Posts: 1571339747

View Profile Personal Message (Offline)

Ignore
1571339747
Reply with quote  #2

1571339747
Report to moderator
1571339747
Hero Member
*
Offline Offline

Posts: 1571339747

View Profile Personal Message (Offline)

Ignore
1571339747
Reply with quote  #2

1571339747
Report to moderator
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1571339747
Hero Member
*
Offline Offline

Posts: 1571339747

View Profile Personal Message (Offline)

Ignore
1571339747
Reply with quote  #2

1571339747
Report to moderator
1571339747
Hero Member
*
Offline Offline

Posts: 1571339747

View Profile Personal Message (Offline)

Ignore
1571339747
Reply with quote  #2

1571339747
Report to moderator
verymuchso
Sr. Member
****
Offline Offline

Activity: 417
Merit: 250


HEAT Ledger


View Profile
February 20, 2014, 11:19:17 AM
 #35782

Will the interfaces for the major components (Account, Transaction, Peer etc..) stay roughly the same?
Also the listener interfaces, will they remain?
Some of them. There are two big changes. First, Nxt is no longer a servlet and does not need to follow the servlet init/destroy lifecycle anymore. It is initialized reading its properties from nxt.properties instead of web.xml. If needed, it will start a PeerServlet that accepts peer-to-peer requests, an APIServlet that serves http/json API requests, and a UserServlet that supports the current NRS javascript client. You can disable all of those in the properties file, so if you are only using the Java API, and don't have a public IP on which to accept incoming peer requests, you will not be running any servlets at all.

Second, I am making Block, Transaction, and Blockchain, interfaces. The current Blockchain class is a bunch of static methods, I am splitting those into BlockchainProcessor, TransactionProcessor, and Blockchain/BlockchainImpl classes. All those will be singletons instead of collections of static methods, which I believe is more flexible in the long term.

Peer has also been split into Peer (an interface), PeerImpl (package-local implementation), and Peers (static methods that handle the whole set of peers).

Account, Asset, Order, Alias, etc, will not change for now. In the future I will have to move them to the database, so I don't want to waste time refactoring them now only to change them again later.

I will try to keep the Listener interfaces, and see how I can use them to accommodate your request for monitoring the initialization steps too.


Sounds cool! When do you expect to release 0.8.0?

Also the setup where you split out the actual peer handling and the pure blockchain interface is perfect, it would allow for even better tools to analyze the blockchain.


Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
February 20, 2014, 11:20:39 AM
 #35783


Local Signing? Blockchain Pruning? Shrinking? Morphing? Timetravel?
Come-ooooooooooon tell us-from-beyond the horizon!

Modelling forging with leased forging power. Trying to find flaws.
FrictionlessCoin
Legendary
*
Offline Offline

Activity: 868
Merit: 1000


Cryptotalk.org - Get paid for every post!


View Profile
February 20, 2014, 11:24:58 AM
 #35784

Will the interfaces for the major components (Account, Transaction, Peer etc..) stay roughly the same?
Also the listener interfaces, will they remain?
Some of them. There are two big changes. First, Nxt is no longer a servlet and does not need to follow the servlet init/destroy lifecycle anymore. It is initialized reading its properties from nxt.properties instead of web.xml. If needed, it will start a PeerServlet that accepts peer-to-peer requests, an APIServlet that serves http/json API requests, and a UserServlet that supports the current NRS javascript client. You can disable all of those in the properties file, so if you are only using the Java API, and don't have a public IP on which to accept incoming peer requests, you will not be running any servlets at all.

Second, I am making Block, Transaction, and Blockchain, interfaces. The current Blockchain class is a bunch of static methods, I am splitting those into BlockchainProcessor, TransactionProcessor, and Blockchain/BlockchainImpl classes. All those will be singletons instead of collections of static methods, which I believe is more flexible in the long term.

Peer has also been split into Peer (an interface), PeerImpl (package-local implementation), and Peers (static methods that handle the whole set of peers).

Account, Asset, Order, Alias, etc, will not change for now. In the future I will have to move them to the database, so I don't want to waste time refactoring them now only to change them again later.

I will try to keep the Listener interfaces, and see how I can use them to accommodate your request for monitoring the initialization steps too.


Finally some sanity on the codebase.   The original code base you couldn't make head or tails as to which request handled the client and which one handled the protocol.  

Finally removing all those static methods.  Hopefully you remove all those static variables too!  

Anyway,  I've seen the 0.7 code and I have to say that you've made good progress from the original horrible code.  

BTW, when will you folks release the source code?

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
verymuchso
Sr. Member
****
Offline Offline

Activity: 417
Merit: 250


HEAT Ledger


View Profile
February 20, 2014, 11:29:27 AM
 #35785

JeanLuc

You said you now use embedded jetty. My current setup is that i use embedded jetty and feed the Nxt servlet on startup to jetty.
What's the setup you use for jetty? Will i still need to embed my own or will 0.8.0 take care of that?

McDoxy
Member
**
Offline Offline

Activity: 96
Merit: 10


View Profile
February 20, 2014, 11:46:28 AM
 #35786

I tried to deposit some Nxt to BTER yesterday and it already had more than 20 confirmations after an hour, but didn't go through yet. I already contacted the support.

Does anybody else have this issue?
mephy
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
February 20, 2014, 11:49:26 AM
 #35787

McDoxy,

Deposit to bter took for me ~48 hours, so its ok.
I've written to support several times, the answer was "Sir, please wait"

Contacts with support is useless, unless you know chineese Sad
BitcoinForumator
Legendary
*
Offline Offline

Activity: 1120
Merit: 1000


View Profile
February 20, 2014, 11:49:29 AM
 #35788

It's going to be close:

https://www.mintpal.com/voting
salsacz
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
February 20, 2014, 11:50:53 AM
 #35789

It's going to be close:

https://www.mintpal.com/voting
130 minutes till deadline

Nxt tips: NXT-R67P-6BZ2-XWAK-8RHZR | Nxt forum | Nxt Academy | Donate for Nxt at the Universities // BTCD: RVMLrnxYYy7uy8YZo9FcGfXbk1ZMnNifdg
Jean-Luc
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250



View Profile WWW
February 20, 2014, 11:59:47 AM
 #35790

My current setup is that i use embedded jetty and feed the Nxt servlet on startup to jetty.
What's the setup you use for jetty? Will i still need to embed my own or will 0.8.0 take care of that?
You shouldn't need to deal with jetty directly. You call Nxt.init() which will trigger all initializations, and will start the jetty servlets it needs (if nxt.shareMyAddress=false, it will not start the PeerServlet, if nxt.enableUIServer=false it will not start the UserServlet for the NRS UI), and is safe to call multiple times. Then, there will be Nxt.getBlockchain(), Nxt.getBlockchainProcessor() and Nxt.getTransactionProcessor() to get hold of the corresponding singletons. The init adds a shutdownHook to handle stopping the threads and closing the database at the jvm shutdown, I assume you never need to shutdown it explicitly once started until the application exit.

That's a lot of changes I am going through, so 0.8.0e should come out some time next week, and I will have to keep it compatible with 0.7.6 peers until client packagers and developers transition to 0.8.0.

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

Activity: 154
Merit: 100


View Profile
February 20, 2014, 12:00:40 PM
 #35791


warning to the rush in the last minutes, only 0,05btc from 2nd
Mario123
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile WWW
February 20, 2014, 12:01:35 PM
 #35792

We should send another BTC Grin

punkrock
Hero Member
*****
Offline Offline

Activity: 811
Merit: 1010



View Profile
February 20, 2014, 12:01:39 PM
 #35793


Tweet from Mintpal: Wow, what a past few hours! We'll be picking our next winning coin at 2PM GMT today. Keep voting! https://www.mintpal.com/voting

P.S.: Don't buy too much. If we gonna be at the 2nd place today, no problem. We'll be added the next days.
LiQio
Legendary
*
Offline Offline

Activity: 1176
Merit: 1002



View Profile
February 20, 2014, 12:02:02 PM
 #35794

I tried to deposit some Nxt to BTER yesterday and it already had more than 20 confirmations after an hour, but didn't go through yet. I already contacted the support.

Does anybody else have this issue?

Same issue for me.

If I'm correct Bter deposits work like this:
- you get personal (=unique) NXT deposit account
- you transfer NXT there
- Bter has some kind of service/cronjob that iterates over those personal account numbers and if it finds NXT on one of them, moves it to the Bter main account while crediting it to your web-account

atm, it seems like this service has long idle periods - meaning the NXT hang on your personal deposit account
Eadeqa
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
February 20, 2014, 12:05:51 PM
 #35795

BTW, when will you folks release the source code?

When the code is released, I would like some way that will make cloning by FrictionlessCoin either illegal or difficult (put some bugs in it)

NXT-GZYP-FMRT-FQ9K-3YQGS
https://nxtforum.org
McDoxy
Member
**
Offline Offline

Activity: 96
Merit: 10


View Profile
February 20, 2014, 12:07:11 PM
 #35796


Tweet from Mintpal: Wow, what a past few hours! We'll be picking our next winning coin at 2PM GMT today. Keep voting! https://www.mintpal.com/voting

P.S.: Don't buy too much. If we gonna be at the 2nd place today, no problem. We'll be added the next days.

Yup seems like they are adding coins every few days
Hegemon
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
February 20, 2014, 12:07:53 PM
 #35797


if Mintpal adds NXT, hope they will write it NXT and not Nextcoin like actually they do.
punkrock
Hero Member
*****
Offline Offline

Activity: 811
Merit: 1010



View Profile
February 20, 2014, 12:12:00 PM
 #35798


if Mintpal adds NXT, hope they will write it NXT and not Nextcoin like actually they do.

Never ending story...
TwinWinNerD
Legendary
*
Offline Offline

Activity: 1680
Merit: 1001


CEO Bitpanda.com


View Profile WWW
February 20, 2014, 12:21:49 PM
 #35799

BTW, when will you folks release the source code?

When the code is released, I would like some way that will make cloning by FrictionlessCoin either illegal or difficult (put some bugs in it)

I hope so too! Not because i am against clones, but because this stupid-fuck is missrepresenting us...

martismartis
Legendary
*
Offline Offline

Activity: 1162
Merit: 1005


View Profile
February 20, 2014, 12:26:09 PM
 #35800

I tried to deposit some Nxt to BTER yesterday and it already had more than 20 confirmations after an hour, but didn't go through yet. I already contacted the support.

Does anybody else have this issue?

Go to your account and near NXT try to push SYNC. It works sometimes.
Pages: « 1 ... 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 [1790] 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 ... 2567 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!