Fix is_leader boolean (#1115)

A node is the leader if the address is none
This commit is contained in:
sakridge 2018-09-04 13:38:24 -07:00 committed by GitHub
parent b4a7a18334
commit d82ec2634c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ impl Fullnode {
sigverify_disabled: bool,
) -> Self {
info!("creating bank...");
let bank = Bank::new_default(leader_addr.is_some());
let bank = Bank::new_default(leader_addr.is_none());
let entries = read_ledger(ledger_path, true).expect("opening ledger");