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

Prefer values over heap-allocated values, simplify memory model, and fix appending parent transaction seeds to transactions. #132

Merged
merged 3 commits into from
Jul 18, 2019

Conversation

iwasaki-kenta
Copy link
Contributor

api, cmd/wavelet, gossip, collapse, genesis, ledger, round: revert to original memory alloc model such that values are emphasized over pointers to ensure correctness
tx: fix AttachSenderToTransaction to properly sort and index parent seeds with respect to index locations of parent ids
tests: parallelize tests where possible

… original memory alloc model such that values are emphasized over pointers to ensure correctness

tx: fix AttachSenderToTransaction to properly sort and index parent seeds with respect to index locations of parent ids
tests: parallelize tests where possible
@iwasaki-kenta iwasaki-kenta added bug Something isn't working enhancement New feature or request labels Jul 18, 2019
@iwasaki-kenta iwasaki-kenta self-assigned this Jul 18, 2019
collapse.go Show resolved Hide resolved
tx.go Outdated
}

func (t *Transaction) rehash() {
func (tx *Transaction) rehash() *Transaction {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this still returns pointer? since its method of transaction struct itself i guess it can mutate. otherwise it needs to return value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, will remove that.

@iwasaki-kenta iwasaki-kenta merged commit 0d2b9e8 into master Jul 18, 2019
@iwasaki-kenta iwasaki-kenta deleted the revert/heap-alloc-tx branch July 18, 2019 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants