Skip to content

Instantly share code, notes, and snippets.

syntax = "proto3";
package tendermint.light;
// GOOGL PROTOBUF any
message Any {
string type_url = 1;
bytes value = 2;
}
message Fraction {
diff --git a/generator/generator.go b/generator/generator.go
index 352147b..58d560a 100644
--- a/generator/generator.go
+++ b/generator/generator.go
@@ -224,9 +224,9 @@ func (g *Generator) generateEnum(descriptor *descriptorpb.EnumDescriptorProto, b
enumNamesString += name
// Note: checking for zero isn't needed since it's enforced by protoc
- if value != oldValue+1 {
- return errors.New("enums must start at 0 and increment by 1: " + enumName + "." + name)
diff --git a/spec/client/ics-028-wasm-client/README.md b/spec/client/ics-028-wasm-client/README.md
index 598f067..8fb7700 100644
--- a/spec/client/ics-028-wasm-client/README.md
+++ b/spec/client/ics-028-wasm-client/README.md
@@ -130,8 +130,9 @@ function initialise(
): ClientState {
codeHandle = getWasmCode(wasmCodeId)
assert(codeHandle.isInitializationDataValid(initializationData, consensusState))
- set("clients/{identifier}/consensusStates/{height}", consensusState)
- return codeHandle.initialise(initializationData, consensusState)
diff --git a/spec/client/ics-028-wasm-client/README.md b/spec/client/ics-028-wasm-client/README.md
index 598f067..8fb7700 100644
--- a/spec/client/ics-028-wasm-client/README.md
+++ b/spec/client/ics-028-wasm-client/README.md
@@ -130,8 +130,9 @@ function initialise(
): ClientState {
codeHandle = getWasmCode(wasmCodeId)
assert(codeHandle.isInitializationDataValid(initializationData, consensusState))
- set("clients/{identifier}/consensusStates/{height}", consensusState)
- return codeHandle.initialise(initializationData, consensusState)

NOTE: The PR slightly changed, so this data might be slightly out of date (but overall, it's still indicative)

Benchmark 0 (hdevalence/ed25519consensus)

$ GOMAXPROCS=1 go test  -cpu 1 -bench=BenchmarkPrecompiledEd25519Verify -benchmem
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/vm
BenchmarkPrecompiledEd25519Verify/valid_input-Gas=1584             17599             67400 ns/op            1656 B/op         17 allocs/op
BenchmarkPrecompiledEd25519Verify/valid_input-Gas=1608                  17914             67768 ns/op            1656 B/op         17 allocs/op

Keybase proof

I hereby claim:

  • I am mkaczanowski on github.
  • I am mkaczanowski (https://keybase.io/mkaczanowski) on keybase.
  • I have a public key ASCSj1mwbZ5dRS8pXzsIUsflPauXhjdyOtgU8-Xl7o8duAo

To claim this, I am signing this object:

version: "3.7"
services:
traefik:
image: "traefik:v2.3"
container_name: "traefik"
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
proc e_get_coreid(): cint {.header: "e_lib.h"}
proc is_prime(number: uint32): bool =
for i in 2..number div 2:
if number mod i == 0:
return false
return true
var
count = cast[ptr uint32](0x7000)
diff --git a/src/common/hdl/oh_mux.v b/src/common/hdl/oh_mux.v
index 7bda282..4025884 100644
--- a/src/common/hdl/oh_mux.v
+++ b/src/common/hdl/oh_mux.v
@@ -21,7 +21,7 @@ module oh_mux #( parameter DW = 1, // width of data inputs
begin
out[DW-1:0] = 'b0;
for(i=0;i<N;i=i+1)
- out[DW-1:0] |= {(DW){sel[i]}} & in[((i+1)*DW-1)-:DW];
+ out[DW-1:0] = out[DW-1:0] | {(DW){sel[i]}} & in[((i+1)*DW-1)-:DW];
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/eoan64"
config.disksize.size = '15GB'