Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Conversation

@Brechtpd
Copy link
Contributor

@Brechtpd Brechtpd commented Apr 22, 2018

Optimization for #320.

Should significantly reduce gas cost by about ~7500 for every call (and there are quite a lot of calls to this function: 4 * ringSize calls to this function in submitRing).

It seems like the tests haven't been updated yet for all API changes in 1.6 so I cannot be sure how much gas is saved. But I tested the function externally and it should work fine.

@dong77 dong77 merged commit 1031777 into LoopringSecondary:v1.6-multihash Apr 23, 2018
dong77 added a commit that referenced this pull request Apr 23, 2018
* added boilerplate code for multihash

* minor

* remove ringhash from RingMined event

* Optimized bytesToBytes32() (#321)

* minor improvement
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.

2 participants