Why latestSolidSubtangleMilestoneIndex not updating ?


Author
Message
Thomas
T
IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)
Group: Forum Members
Posts: 19, Visits: 45
Why latestSolidSubtangleMilestoneIndex not updating  (Already waited few days)?
    
The IRI node never reaches full sync, latestSolidSubtangleMilestoneIndex never catches up to latestMilestoneIndex
latestSolidSubtangleMilestoneIndex comes close to latestMilestoneIndex but then stops updating

for example from getNodeInfo:
latestMilestoneIndex: 297856 and latestSolidSubtangleMilestoneIndex: 297779

The code that updates latestSolidSubtangleMilestoneIndex is in Milestone,java


   if  (
      transactionValidator.checkSolidity(milestoneViewModel.getHash(), true) &&
      milestoneViewModel.index() >= latestSolidSubtangleMilestoneIndex &&
      ledgerValidator.updateSnapshot(milestoneViewModel)
      )
      {
       latestSolidSubtangleMilestone = milestoneViewModel.getHash();
       latestSolidSubtangleMilestoneIndex = milestoneViewModel.index();
      }

milestoneViewModel.index() is what is used to report latestMilestoneIndex, so milestoneViewModel.index() >= latestSolidSubtangleMilestoneIndex is true

The if statement is never executed after latestSolidSubtangleMilestoneIndex gets close to latestMilestoneIndex

Can anyone explain what is happening with:

transactionValidator.checkSolidity(milestoneViewModel.getHash(), true) &&
ledgerValidator.updateSnapshot(milestoneViewModel)



Winston
Winston
Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)
Group: Administrators
Posts: 3.6K, Visits: 6.7K
@Thomas Someone more experienced than I am can chip in and help. My question is: how many neighbors do you have?
Thomas
T
IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)
Group: Forum Members
Posts: 19, Visits: 45
Winston  , I have 4 peers total.  3 peers using tcp and one peer using udp 
This issue was also mentioned by several people in github I think, but nobody had any answers.

transactionValidator.checkSolidity(milestoneViewModel.getHash(), true) &&
ledgerValidator.updateSnapshot(milestoneViewModel)

These two conditions return false always, that is why the if statement is not executed 
The if statement is inside a for loop which loops 10 times every 5 seconds.

The code in transactionValidator.checkSolidity and ledgerValidator.updateSnapshot is executed but always return false, in ledgerValidator.updateSnapshot the  statement 
hasSnapshot = currentState != null && latestSnapshot.patch(currentState, milestone.index()).isConsistent();
is always false because currentState is always null

I do not know if that is a bug or if it is supposed to work like that ,  
perhaps you can asked Paul, the module was Created by paul on 4/15/17.
Thx




Thomas
T
IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)
Group: Forum Members
Posts: 19, Visits: 45
After a long time waiting and nothing improving I followed the instructions in iota.partners to download a complete database:

 * download the complete database from http://db.iota.partners/IOTA.partners-mainnetdb.tar.gz (updated every 30 minutes) and extract in db folder;
* start the service and in max 5 hours you'll be FULL SYNC 

Indeed the node became synced  (latestMilestoneIndex: 301384 = latestSolidSubtangleMilestoneIndex: 301384) in few minutes, the corresponding transaction is YQMSDWGHWLCALRZQVPACMBX9KQ9VVXUGK9FTYEKJVNGGWKP9BYYBRDVYEKV9NEHHMTPMSMAFFOTP99999

However this milestone transaction  YQMSDWGHWLCALRZQVPACMBX9KQ9VVXUGK9FTYEKJVNGGWKP9BYYBRDVYEKV9NEHHMTPMSMAFFOTP99999 was already 5 hours old according to the IOTA explorer https://iotasear.ch/  and after waiting two more hours nothing has changed in my node, it still has the same latestMilestoneIndex: 301384 = latestSolidSubtangleMilestoneIndex: 301384

The current milestone shown in  https://iotasear.ch/ is 301562 JD9BPZIJAFARZD9VNAUJQNIQYZCLRVFXNAQDZZAHLFZBVJIPIWUTTWOWN9ALCBVLGBPNKOMJCPIWA9999

What is the reason that no new milestones are reaching my node ?




Winston
Winston
Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)Forum Admin (33K reputation)
Group: Administrators
Posts: 3.6K, Visits: 6.7K
@Thomas You might get some better answers by posting this in the Nodesharing forum as well.
Thomas
T
IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)IOTAn Pending (1.3K reputation)
Group: Forum Members
Posts: 19, Visits: 45
I requested in the Nodesharing forum and got a couple more neighbors.
The node synced quickly after that , so finally is now ready for further testing and development.
Any one interested in building a real project let me now !
Cheers
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search