mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 19:41:08 +03:00
ef4f426474
* Sort pool tx by fee over weight for mining. Fixes #1105 * Bucketing dependent transactions before weighing. Minor tx weight fixes. * Limit length of tx chain, cleanup and test fixes * Cleanup all mining references to a hardcoded tx count * Small test improvement, cleanup
19 lines
449 B
Rust
19 lines
449 B
Rust
#[macro_use]
|
|
extern crate pretty_assertions;
|
|
extern crate grin_config as config;
|
|
|
|
use config::GlobalConfig;
|
|
|
|
#[test]
|
|
fn file_config_equal_to_defaults() {
|
|
let global_config_without_file = GlobalConfig::default();
|
|
|
|
let global_config_with_file = GlobalConfig::new(Some("../grin.toml")).unwrap_or_else(|e| {
|
|
panic!("Error parsing config file: {}", e);
|
|
});
|
|
|
|
assert_eq!(
|
|
global_config_without_file.members,
|
|
global_config_with_file.members
|
|
);
|
|
}
|