I hereby claim:
- I am aeyakovenko on github.
- I am aey (https://keybase.io/aey) on keybase.
- I have a public key ASD2Rze2e-sz8vuyCKXHU7YceoWQOWupvQyV2IefYmEk9Qo
To claim this, I am signing this object:
[Running cargo test] | |
Compiling solana v0.9.0 (file:///Users/anatolyyakovenko/solana) | |
error[E0271]: type mismatch resolving `<std::sync::mpsc::TryIter<'_, (std::vec::Vec<transaction::Transaction>, hash::Hash)> as std::iter::IntoIterator>::Item == &(std::vec::Vec<transaction::Transaction>, hash::Hash)` | |
--> src/banking_stage.rs:122:90 | |
| | |
122 | for (processed_transactions, hash) in [transaction_receiver.recv()?].into_iter().chain(transaction_receiver.try_iter()) { | |
| ^^^^^ expected tuple, found reference | |
| | |
= note: expected type `(std::vec::Vec<transaction::Transaction>, hash::Hash)` | |
found type `&(std::vec::Vec<transaction::Transaction>, hash::Hash)` |
enum Contract { | |
/// Promise to sign a valid request within the `time_guarantee` | |
Promised{promise: Promise, time_guarantee: u64, sol_to_eth: u64}, | |
/// Request has been made, the Promisee need's to sign before `expires` | |
Requested{promise: Promise, valid_request: Request, expires: u64}, | |
/// Request has been signed | |
Signed(Vec<u8>), | |
/// Request has expired | |
Expired, | |
} |
///ERROR: | |
--> src/accounts.rs:196:9 | |
| | |
192 | pub fn account_values_slow<R>(&self, fork: u64) -> R | |
| - expected `R` because of return type | |
... | |
196 | self.accounts.iter().map(|(k, v)| (fork, (k, v))) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter, found struct |
bash-3.2$ cargo watch -x 'test replay_stage_correctness' | |
[Running cargo test replay_stage_correctness] | |
Finished dev [unoptimized + debuginfo] target(s) in 3.94s | |
Running target/debug/deps/solana-0d9433813e2adc81 | |
running 1 test | |
thread 'solana-replay-stage' panicked at 'attempt to subtract with overflow', src/replay_stage.rs:72:24 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
stack backtrace: | |
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace |
use fnv::FnvHasher; | |
pub const REFRESH_RATE: u64 = 1000; | |
struct Sched { | |
seed: u64, | |
ranks: Vec<(Pubkey, u64)>, | |
} | |
impl Sched { |
test: test_one_fullnode_rotate_every_tick_with_transactions | |
PR with changes: https://github.com/solana-labs/solana/pull/2782 | |
I hereby claim:
To claim this, I am signing this object:
``` | |
@danpaul000#7820 are these errors expected: | |
``` | |
$ ./colo.sh create -n 5 -c 1 --dedicated -g | |
INFLUX_HOST=https://metrics.solana.com:8086 | |
INFLUX_DATABASE=testnet-dev-aeyakovenko | |
INFLUX_USERNAME=scratch_writer | |
INFLUX_PASSWORD=******** | |
INFLUX_HOST=https://metrics.solana.com:8086 | |
INFLUX_DATABASE=testnet-dev-aeyakovenko |
import random | |
LEN = 200 | |
NUM = LEN + LEN // 10 | |
def one_hot(i): | |
return [1 if i == x else 0 for x in range(NUM)] | |
def rand_vec(l): | |
return [random.randint(0, 1) for _ in range(l)] |
import random | |
from sets import Set | |
LEN = 200 | |
NUM = LEN + LEN // 10 | |
def one_hot(i): | |
return [1 if i == x else 0 for x in range(NUM)] |