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

Transaction yielding output might not be registered anymore #265

Open
JeremyPansier opened this issue May 17, 2024 · 0 comments
Open

Transaction yielding output might not be registered anymore #265

JeremyPansier opened this issue May 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JeremyPansier
Copy link
Member

Add an expiry time using:

	info, _ := proofOfHumanity.PohCaller.GetSubmissionInfo(nil, common.HexToAddress(address))
	submissionTime := time.Unix(int64(info.SubmissionTime), 0)
	fmt.Println("registration date", submissionTime.Format("01-02-2006 15:04:05"))
	submissionDurationSeconds, _ := proofOfHumanity.PohCaller.SubmissionDuration(nil)
	submissionDuration := time.Duration(submissionDurationSeconds) * time.Second
	expiryTime := submissionTime.Add(submissionDuration)
	remainingDuration := expiryTime.Sub(time.Now())
	fmt.Println("remaining time:", remainingDuration)
	fmt.Println("remaining days:", remainingDuration.Hours()/24)
	fmt.Println("remaining months:", remainingDuration.Hours()/24/30)
```
@JeremyPansier JeremyPansier added the bug Something isn't working label May 17, 2024
@JeremyPansier JeremyPansier added this to the Improve reliability milestone May 17, 2024
@JeremyPansier JeremyPansier self-assigned this May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant