Skip to content

Commit

Permalink
Merge pull request #6 from holiman/metro_benchmark_on_karalabe
Browse files Browse the repository at this point in the history
Tests and Benchmarks for Metro
  • Loading branch information
karalabe authored Jun 30, 2017
2 parents aaae37c + e07d36f commit d4a2269
Show file tree
Hide file tree
Showing 2 changed files with 267 additions and 65 deletions.
3 changes: 2 additions & 1 deletion core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ type pairing struct{}
// required for anything significant is so high it's impossible to pay for.
func (c *pairing) RequiredGas(input []byte) uint64 {
//return 0 // TODO
return uint64(60000*len(input) + 40000)
k := (len(input) + 191) / pairSize
return uint64(60000*k + 40000)
}

const pairSize = 192
Expand Down
Loading

0 comments on commit d4a2269

Please sign in to comment.