Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.10 - NEW RELEASE: Ardor 2.0.5e TestNet - The Ignis ICO is over!! Ardor genesis snapshots will happen at Nxt block 1,630,000 (expected for 25th December)

Pages: [1]

Author Topic: Any improvement in the Ardor forging protocol to avoid attacks with false chains?  (Read 137 times)

sirpask

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 87
    • View Profile
  • Karma: +9/-0

if my node is connected to 8 nodes, seven of which are trying to trick me by presenting me with a fake blockchain, but one presents a legitimate string.

Is there any way for my node (automatically) to detect the only good node and ban the other 7 false nodes?

The power of forged and what decides that Blockchain would be the correct one is the amount of NXT or Ardors that the attackers have?




petko

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 86
    • View Profile
    • My blog
  • Karma: +23/-0

Yes, your node should automatically blacklist the 7 rogue peers. The code for that is in BlockchainProcessorImpl.java line 655

What is used to decide the "true" chain is the cumulative difficulty of the chain, which is proportional to the amount of forging power used to build that chain.

sirpask

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 87
    • View Profile
  • Karma: +9/-0

thanks petko!! doubt solved!!
Pages: [1]