Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I was not able to generate blocks #1359

Closed
shargon opened this issue Dec 10, 2019 · 12 comments · Fixed by #1358
Closed

I was not able to generate blocks #1359

shargon opened this issue Dec 10, 2019 · 12 comments · Fixed by #1358

Comments

@shargon
Copy link
Member

shargon commented Dec 10, 2019

With only one CN and Memory store, I never received the Block in LocalNode

image

I was able to ensure that the block was relayed here

image

But in LocalNode I never receive the blocks here

image

Could @superboyiii tell me if you have any problem with this?

@shargon
Copy link
Member Author

shargon commented Dec 10, 2019

The block arrived two minutes later... Still investigating it

image

@superboyiii
Copy link
Member

Hey Shargon, the block arrives on mine after 15 secondes, seems normal. I tried both with LevelDB plugin and write in memory directly. All works well .Is there anything wrong on environment or settings?
image

@erikzhang
Copy link
Member

It's normal on my private net too.

@shargon
Copy link
Member Author

shargon commented Dec 10, 2019

Any clue? I was following the flow, and I don't know why it spend this time in OnReceive? sometimes it spend 8 minutes or more :S

@shargon
Copy link
Member Author

shargon commented Dec 10, 2019

Are you using master ?

@erikzhang
Copy link
Member

Are you using master ?

Yes.

@shargon
Copy link
Member Author

shargon commented Dec 10, 2019

You can see in the video that the block is not received in LocalNode.OnReceive

2019-12-10 15-32-38.zip

protocol

{
  "ProtocolConfiguration": {
    "Magic": 5195086,
    "MillisecondsPerBlock": 1000,
    "StandbyValidators": [
      "032887e2f9ac0081d0ec622d42285afb10134990e7b193e596690630d43ebe806e"
    ],
    "SeedList": [ ]
  }
}

@shargon
Copy link
Member Author

shargon commented Dec 12, 2019

I changed Relay to be like this:

public class Relay
        {
            public DateTime Create = DateTime.Now;
            public TimeSpan Elapsed => DateTime.Now - Create;
            public IInventory Inventory;
        }

You can see that was elapsed 3 minutes in arrive

image

image

@shargon
Copy link
Member Author

shargon commented Dec 12, 2019

I found the issue, but now i need to understand why :S

@shargon
Copy link
Member Author

shargon commented Dec 12, 2019

@erikzhang @Tommo-L @vncoelho

With empty seeds, it takes the default seeds.

image

And it starting throwing errors in dns, and AKKA's messages was lagged

image

Without seeds, (null) there are no errors

image

And I am able to generate blocks

image

@shargon
Copy link
Member Author

shargon commented Dec 12, 2019

@Tommo-L The question is why non working dns can alter the AKKA messages?

entry = Dns.GetHostEntry(hostNameOrAddress);

My error

This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.

@shargon shargon transferred this issue from neo-project/neo-node Dec 12, 2019
@erikzhang
Copy link
Member

Maybe DNS queries can consume a lot of time? We should set a timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants