Tweaked snapshot params (#6344)

This commit is contained in:
Arkadiy Paronyan
2017-08-22 11:24:56 +02:00
committed by GitHub
parent b4d3f78d67
commit d41dd13918
6 changed files with 29 additions and 13 deletions

View File

@@ -133,7 +133,7 @@ const MAX_TRANSACTION_PACKET_SIZE: usize = 8 * 1024 * 1024;
// Maximal number of transactions in sent in single packet.
const MAX_TRANSACTIONS_TO_PROPAGATE: usize = 64;
// Min number of blocks to be behind for a snapshot sync
const SNAPSHOT_RESTORE_THRESHOLD: BlockNumber = 100000;
const SNAPSHOT_RESTORE_THRESHOLD: BlockNumber = 10000;
const SNAPSHOT_MIN_PEERS: usize = 3;
const STATUS_PACKET: u8 = 0x00;