Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Feature: use nonce to add attachment timestamp. #303

Merged
merged 28 commits into from
Sep 17, 2017

Conversation

alon-e
Copy link
Contributor

@alon-e alon-e commented Sep 16, 2017

NONCE_TRINARY_SIZE = 243;

will be changed to

TAG_TRINARY_SIZE = 81
ATTACHMENT_TIMESTAMP_TRINARY_SIZE = 27
ATTACHMENT_TIMESTAMP_LOWER_BOUND_TRINARY_SIZE = 27
ATTACHMENT_TIMESTAMP_UPPER_BOUND_TRINARY_SIZE = 27
NONCE_TRINARY_SIZE = 81

to allow specifying a timestamp for each attached transaction (so re-attachments will have a different attachment timestamp).
also the tag has been moved out to the attachment section, to allow a different tag for each re-attachment.

in this PR, the tag is the same as obsolete tag.

Paul D Handy and others added 28 commits August 8, 2017 15:58
# Conflicts:
#	Dockerfile
#	README.md
#	changelog.txt
#	dependency-reduced-pom.xml
#	pom.xml
#	src/main/java/com/iota/iri/IRI.java
#	src/main/java/com/iota/iri/service/TipsManager.java
@alon-e
Copy link
Contributor Author

alon-e commented Sep 17, 2017

yes, currently the value of (attachment) TAG will be the same as (bundle) TAG.
as this is what is impl. in IRI's attachToTangle API call.

however, this opens the option to assign a different TAG to a single instance of the attached bundle in the future.

stplaydog added a commit to triasteam/StreamNet that referenced this pull request Apr 19, 2019
[fix 301] Add network and genesis forwarding
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants