Skip to content

Instantly share code, notes, and snippets.

View aeyakovenko's full-sized avatar

anatoly yakovenko aeyakovenko

View GitHub Profile
```
$ ci/localnet-sanity.sh
Cleaning /home/anatolyyakovenko/solana/config
removed '/home/anatolyyakovenko/solana/config/leader.json'
removed '/home/anatolyyakovenko/solana/config/ledger/index'
removed '/home/anatolyyakovenko/solana/config/ledger/data'
removed directory '/home/anatolyyakovenko/solana/config/ledger'
removed directory '/home/anatolyyakovenko/solana/config'
Cleaning /home/anatolyyakovenko/solana/config-private
removed '/home/anatolyyakovenko/solana/config-private/mint.json'
INFO 2018-07-10T14:05:00Z: multinode: started[59/60] a0a53fb578b45fdb
INFO 2018-07-10T14:05:00Z: multinode: executing leader transfer
INFO 2018-07-10T14:05:02Z: multinode: SUCCESS[0] 18 out of 60 distance: 42
INFO 2018-07-10T14:05:02Z: multinode: executing leader transfer
INFO 2018-07-10T14:05:05Z: multinode: SUCCESS[1] 27 out of 60 distance: 66
INFO 2018-07-10T14:05:05Z: multinode: executing leader transfer
INFO 2018-07-10T14:05:06Z: multinode: SUCCESS[2] 50 out of 60 distance: 30
INFO 2018-07-10T14:05:06Z: multinode: executing leader transfer
INFO 2018-07-10T14:05:07Z: multinode: SUCCESS[3] 52 out of 60 distance: 32
INFO 2018-07-10T14:05:07Z: multinode: executing leader transfer
The Solana team is proud to release solana-v0.6.0, codename Pipeline!
![image](https://user-images.githubusercontent.com/55449/40861685-334c47b0-65a7-11e8-9d23-6757f371b0e4.png)
What's New?
===
* Multinode testnet! Very much in its infancy, but we've massively de-risked performance concerns surrounding high-throughput multinode testnets. You can now spin up validator nodes and see that the leader is able to get the blocks to them without any TPS slowdown. That was our theory and now it's a reality.
INFO:<unknown>: COUNTER:1527744630180: "packets" counts: 2845 nanos: 7028726 samples: 10 rate: 404767.5211695548 cps
INFO:<unknown>: COUNTER:1527744630240: "packets" counts: 6789 nanos: 14966218 samples: 20 rate: 453621.6163629315 cps
INFO:<unknown>: COUNTER:1527744630287: "packets" counts: 10078 nanos: 20423816 samples: 30 rate: 493443.5367024458 cps
INFO:<unknown>: COUNTER:1527744630334: "packets" counts: 13396 nanos: 26686282 samples: 40 rate: 501980.7555057688 cps
INFO:<unknown>: COUNTER:1527744630382: "packets" counts: 16682 nanos: 32064183 samples: 50 rate: 520268.9867382556 cps
INFO:<unknown>: COUNTER:1527744630423: "packets" counts: 19539 nanos: 38153975 samples: 60 rate: 512109.15769588883 cps
INFO:<unknown>: COUNTER:1527744630468: "packets" counts: 22448 nanos: 43658425 samples: 70 rate: 514173.381197329 cps
INFO:<unknown>: COUNTER:1527744630515: "packets" counts: 25037 nanos: 53311987 samples: 80 rate: 469631.7171595949 cps
INFO:<unknown>: COUNTER:1527744630563: "packets" counts: 28127 nanos: 59760
```
INFO:<unknown>: COUNTER: "ed25519_verify_cuda":1527743697784 counts: 0 nanos: 0 samples: 0 rate: NaN cps
INFO:<unknown>: COUNTER: "banking_stage_process_packets":1527743697806 counts: 0 nanos: 0 samples: 0 rate: NaN cps
INFO:<unknown>: COUNTER: "ed25519_verify_cuda":1527743697911 counts: 10 nanos: 715914090 samples: 1 rate: 13.968156430613064 cps
INFO:<unknown>: COUNTER: "banking_stage_process_packets":1527743697959 counts: 10 nanos: 21476831 samples: 1 rate: 465.61804206588954 cps
INFO:<unknown>: COUNTER: "ed25519_verify_cuda":1527743697973 counts: 576 nanos: 1545011313 samples: 2 rate: 372.8128041221663 cps
INFO:<unknown>: COUNTER: "banking_stage_process_packets":1527743698003 counts: 576 nanos: 68811345 samples: 2 rate: 8370.712707330455 cps
INFO:<unknown>: COUNTER: "ed25519_verify_cuda":1527743698025 counts: 949 nanos: 2442533376 samples: 3 rate: 388.5310265664104 cps
INFO:<unknown>: COUNTER: "ed25519_verify_cuda":1527743698055 counts: 1344 nanos: 3379633695 samples: 4 rate: 397.676233962391 cps
INFO:
// E (enterprise TTP server), A (alice), B (bob), L (ledger), Eb (mirror account for Bob)
// So A and B generate their respective G’s with E, the enterprise server thats handling the accounts.
E <-> A: create Ga
E <-> B: create Gb
// I don’t think there is a way for us to convert between Ga and Gb, so for A to transfer to B, it will send money to Eb,
// basically a mirror account for B that will use Ga as the base
A -> L: from: A, to:Eb output Ga^10
export RUST_LOG=state=TRACE
export RUST_BACKTRACE=1
all: test
build:
cargo build 2>&1 | head -n 30
loop:
while true; do fswatch -1 -r src; make; done
@aeyakovenko
aeyakovenko / hasht.rs
Created December 25, 2017 02:31
hashtable in rust
use result::{Result, Error};
use core::marker::PhantomData;
pub trait Key: Eq {
fn start(&self) -> usize;
fn unused(&self) -> bool;
}
pub trait Val<T: Key>: Sized + Clone {
fn key(&self) -> &T;
sudo ./minuteman/bin/minuteman-env foreground
Exec: /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/erts-8.1/bin/erlexec -noshell -noinput +Bd -boot /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/releases/0.0.1/minuteman -mode embedded -config /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/releases/0.0.1/sys.config -boot_var ERTS_LIB_DIR /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/erts-8.1/../lib -args_file /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/releases/0.0.1/vm.args -- foreground
Root: /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman
Setup running ...
Directories verified. Res = {[ok],[]}
Setup finished processing hooks ...
20:23:11.347 [warning] Received unknown info: {'EXIT',<0.865.0>,shutdown}, in state: {state,<0.810.0>,#Ref<0.0.1.459>,[],[]}
20:23:18.377 [w
$ py.test -vv -s test_network_api_service.py
161017-18:52:47.748 dcostests.dcos _get_hostname() INFO: Test if host `master.mesos` can be resolved.
161017-18:52:47.750 dcostests.dcos _make_ca_crt_file() INFO: Attempt to get CA bundle via CA HTTP API
/opt/mesosphere/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
161017-18:52:48.193 root _wait_for_leader_election() INFO: leader.mesos dns entry is UP!
161017-18:52:48.223 root _wait_for_Marathon_up() INFO: Marathon is probably up
161017-18:52:48.242 root _wait_for_slaves_to_join() INFO: Sufficient (2 >= ['10.0.7.227', '10.0.0.66']) number of slaves have joined the cluster
161017-18:52:48.255 root _wait_for_DCOS_history_up() INFO: DC/OS History is probably up
161017-18:52:48.255 root _wait_for_srouter_slaves_endpoints() INFO: Fetching