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

Yielding output is not verified #257

Open
2 tasks
JeremyPansier opened this issue Feb 28, 2024 · 0 comments
Open
2 tasks

Yielding output is not verified #257

JeremyPansier opened this issue Feb 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JeremyPansier
Copy link
Member

JeremyPansier commented Feb 28, 2024

  • A transaction holding an yielding output must be signed by the incomed output recipient.
  • A yielding utxo must be updated when the recipient is not registered anymore.
	for address := range blockchain.registeredAddresses {
		isPohValid, err := blockchain.registry.IsRegistered(address)
		if err != nil {
			return fmt.Errorf("failed to get proof of humanity: %w", err)
		}
		if isPohValid {
			addedRegisteredAddresses = append(addedRegisteredAddresses, address)
		} else {
			removedRegisteredAddresses = append(removedRegisteredAddresses, address)
			for _, utxo := range blockchain.utxosByAddress[address] {
				if utxo.IsYielding() {
					//utxo.ChangeExpiration
				}
			}
		}
	}
@JeremyPansier JeremyPansier added the bug Something isn't working label Feb 28, 2024
@JeremyPansier JeremyPansier added this to the Improve reliability milestone Feb 28, 2024
@JeremyPansier JeremyPansier changed the title Incomed output is not verified Yielding output is not verified Mar 22, 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: To Do
Development

No branches or pull requests

1 participant