I hereby claim:
- I am aludvik on github.
- I am adamludvik (https://keybase.io/adamludvik) on keybase.
- I have a public key ASDsSArOP7RnVGsCdOiLt9O3YIg_qz-qaBbZ527wRu20awo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
extern crate mio; | |
use mio::{Events, Ready, Poll, PollOpt, Token}; | |
use mio::net::{TcpListener, TcpStream}; | |
use std::io::{Read, Write}; | |
use std::str; | |
const LISTENER: Token = Token(0); | |
const CLIENT: Token = Token(1); |
extern crate hex; | |
extern crate openssl; | |
extern crate crypto; | |
use crypto::digest::Digest; | |
fn main() { | |
eprintln!("testing simple hash"); | |
test_simple_hash(); | |
eprintln!("testing cumulative hash"); |
1. When a batch arrives, add it to a queue and include a "skip count" and the | |
queue size when it was added | |
2. When a block is committed, remove batches from the front of the queue until | |
all batches in the block have been removed. If a batch is not in the block, | |
increase its skip count and save it. Push all batches that were skipped back | |
onto the front of the queue, preserving the original order. | |
3. While pushing batches back onto the queue, check that the batch isn't being | |
intentionally skipped by the validator: | |
a. Check if the skip_count (S) is greater than the size of the queue when |
This guide will help you save time building Sawtooth Core using the official development build tooling.
Prerequisites:
package main | |
import ( | |
"fmt" | |
"bytes" | |
"github.com/tendermint/go-wire" | |
) | |
type Foo interface { | |
Bar() |