Skip to content

Instantly share code, notes, and snippets.

View mratsim's full-sized avatar
:shipit:

Mamy Ratsimbazafy mratsim

:shipit:
  • Paris
View GitHub Profile
#52 call - https://github.com/ethereum/eth2.0-pm/issues/191
Nimbus
Networking:
- Improve tracking of resources: streams, channels
- Gossipsub audit fixes (done late because 1.1 was not tested enough during its allocated phase)
Core:
- Toledo
@mratsim
mratsim / 2020-10-01 Eth2 Call 49.txt
Created October 1, 2020 14:36
2020-10-01 Eth2 Call 49
Agenda
https://github.com/ethereum/eth2.0-pm/issues/184
————————
————————
Testing and Release updates
Eth 1.0 release candidate WIP
Zinken
@mratsim
mratsim / bung.nim
Created September 20, 2020 17:26
Bung's debugging session
import arraymancer
import sequtils
import random
import strformat
# https://d2l.ai/d2l-en.pdf 3.2 LinearRegressionImplementationfromScratch english version.
iterator data_iter[T](batch_size:Natural, features:Tensor[T], labels:Tensor[T]): (Tensor[T],Tensor[T]) =
let num_examples = len(features)
var indices = toSeq(countup(0,num_examples - 1))
random.shuffle(indices)
import
# Internal
./milagro, ./common
proc PAIR_BLS12381_double(A: var ECP2_BLS12381, a, b, c: var FP2_BLS12381) {.importc, cdecl.}
proc PAIR_BLS12381_add(A, B: var ECP2_BLS12381, a, b, c: var FP2_BLS12381) {.importc, cdecl.}
proc ECP_BLS12381_set(P: var ECP_BLS12381, a, b: BIG_384): int {.importc, cdecl.}
proc PAIR_BLS12381_line(v: var FP12_BLS12381, A, B: var ECP2_BLS12381, Qx, Qy: ptr FP_BLS12381) {.importc, cdecl.}
proc PAIR_BLS12381_ate(r: var FP12_BLS12381, A: var ECP2_BLS12381, B: var ECP_BLS12381) {.importc, cdecl.}
@mratsim
mratsim / 2020-09-17 Eth2 Call 48.txt
Created September 17, 2020 14:41
2020-09-17 Eth2 Implementer's Call 48
https://github.com/ethereum/eth2.0-pm/issues/181
Nimbus
Audit:
- Last phase of audit started
- Validator core: secrets & keystores
- Attestation/block proposal + Slashing protection
- Gossipsub (1.1)
- RPC
@mratsim
mratsim / 2020-09-03 Eth2 Call 47.txt
Created September 3, 2020 14:37
2020-09-03 Eth2 Call 47.txt
Agenda: https://github.com/ethereum/eth2.0-pm/issues/178
Nimbus:
Audit:
- Highlighted several potential for malicious attestations or blocks
to exhaust the system memory, so now use bounded buffer and explicit drops
when late
Current focus:
@mratsim
mratsim / 2020-08-20 Eth2 Call 46.txt
Created August 20, 2020 15:00
2020-08-20 Eth2 Call 46
https://github.com/ethereum/eth2.0-pm/issues/173
Nimbus
Medalla:
1. Losing peers
2. Syncing performance
3. (very) High-memory usage for 2 caches:
- epoch cache that in particular caches validators public keys
was way too aggressive after a couple speed optimizations (gigabytes!)
https://github.com/ethereum/eth2.0-pm/issues/171
Nimbus:
Medalla issues:
1. The increased number of attestations in Medalla revealed limits in our stack between libp2p and the beacon node. In particular we are doing the same work multiple times especially in periods of non-finality. This is fixed
2. Attestation processing bug: we wanted to optimize database loading by delaying
the deserialisation of public keys/signatures. 2 approaches were explored
@mratsim
mratsim / 2020-07-09 Eth2 Call 44.txt
Created July 23, 2020 14:57
2020-07-09 Eth2 Call 44
Agenda: https://github.com/ethereum/eth2.0-pm/issues/169
Nimbus
Audit:
- Consensys Diligence
- Trail of Bits
- NCC
3 phases, 2 weeks audit, 2 or 3 weeks fixes.
Nimbus:
Validator’s book: https://status-im.github.io/nim-beacon-chain/
Auditor’s book: https://status-im.github.io/nim-beacon-chain/auditors-book/
https://github.com/ethereum/eth2.0-pm/issues/165
Altona bugs:
- networking