MCPcopy Create free account
hub / github.com/anthdm/hbbft / sample

Method sample

buffer.go:68–81  ·  view source on GitHub ↗

sample will return (n) elements from the buffer with (m) as its maximum upperbound. [ a ] [ b ] [ c ] m [ d ] In the above example there can be only sampled between a, b and c. If the length of the buffer is smaller then 1 no transactions are being returned. If the length of the buffer is smaller th

(n, m int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestBufferSampleFunction · 0.80

Calls 1

lenMethod · 0.95

Tested by 1

TestBufferSampleFunction · 0.64