parent
b7b68ecdba
commit
fd3c6eb320
|
@ -20,6 +20,7 @@ declare prints=(
|
||||||
declare print_free_tree=(
|
declare print_free_tree=(
|
||||||
'core/src'
|
'core/src'
|
||||||
'faucet/src'
|
'faucet/src'
|
||||||
|
'ledger/src'
|
||||||
'metrics/src'
|
'metrics/src'
|
||||||
'net-utils/src'
|
'net-utils/src'
|
||||||
'runtime/src'
|
'runtime/src'
|
||||||
|
|
|
@ -2127,8 +2127,8 @@ pub fn create_new_ledger(ledger_path: &Path, genesis_config: &GenesisConfig) ->
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
use std::io::{Error as IOError, ErrorKind};
|
use std::io::{Error as IOError, ErrorKind};
|
||||||
use std::str::from_utf8;
|
use std::str::from_utf8;
|
||||||
eprintln!("tar stdout: {}", from_utf8(&output.stdout).unwrap_or("?"));
|
error!("tar stdout: {}", from_utf8(&output.stdout).unwrap_or("?"));
|
||||||
eprintln!("tar stderr: {}", from_utf8(&output.stderr).unwrap_or("?"));
|
error!("tar stderr: {}", from_utf8(&output.stderr).unwrap_or("?"));
|
||||||
|
|
||||||
return Err(BlocktreeError::IO(IOError::new(
|
return Err(BlocktreeError::IO(IOError::new(
|
||||||
ErrorKind::Other,
|
ErrorKind::Other,
|
||||||
|
|
|
@ -1243,7 +1243,6 @@ pub mod tests {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// Should see only the parent of the dead children
|
// Should see only the parent of the dead children
|
||||||
println!("{:?}", bank_forks_info);
|
|
||||||
assert_eq!(bank_forks_info.len(), 1);
|
assert_eq!(bank_forks_info.len(), 1);
|
||||||
assert_eq!(bank_forks_info[0], BankForksInfo { bank_slot: 0 },);
|
assert_eq!(bank_forks_info[0], BankForksInfo { bank_slot: 0 },);
|
||||||
verify_fork_infos(&bank_forks, &bank_forks_info);
|
verify_fork_infos(&bank_forks, &bank_forks_info);
|
||||||
|
|
Loading…
Reference in New Issue