mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
test-harness: update vks/pks hashes, put back to info and fix docstring in sdk
This commit is contained in:
@@ -90,8 +90,8 @@ pub fn init_logger() {
|
||||
// We check this error so we can execute same file tests in parallel,
|
||||
// otherwise second one fails to init logger here.
|
||||
if simplelog::TermLogger::init(
|
||||
//simplelog::LevelFilter::Info,
|
||||
simplelog::LevelFilter::Debug,
|
||||
simplelog::LevelFilter::Info,
|
||||
//simplelog::LevelFilter::Debug,
|
||||
//simplelog::LevelFilter::Trace,
|
||||
cfg.build(),
|
||||
simplelog::TerminalMode::Mixed,
|
||||
|
||||
@@ -48,8 +48,8 @@ use log::debug;
|
||||
|
||||
/// Update these if any circuits are changed.
|
||||
/// Delete the existing cachefiles, and enable debug logging, you will see the new hashes.
|
||||
const PKS_HASH: &str = "4da3b575572613f26a39d1698085b89228900fbee712bb54a6b842d1fe9d5b77";
|
||||
const VKS_HASH: &str = "370f9427f47871d443dbd770137999606e0d96d46548f36ca141de2f4355b598";
|
||||
const PKS_HASH: &str = "dc23c141c782cd3f801201850efc50500880974d3e2d427873448389f0b90e03";
|
||||
const VKS_HASH: &str = "d353e46f3cfafc989c3e59234ffe2ca8673e95cd232df2f54f4f2c5768549488";
|
||||
|
||||
/// Build a `PathBuf` to a cachefile
|
||||
fn cache_path(typ: &str) -> Result<PathBuf> {
|
||||
|
||||
@@ -160,11 +160,10 @@ pub fn get_tx(hash: &TransactionHash) -> GenericResult<Option<Vec<u8>>> {
|
||||
}
|
||||
|
||||
/// Only metadata() and exec() can call this. Will return transaction
|
||||
/// location bytes by provided hash.
|
||||
/// location by provided hash.
|
||||
///
|
||||
/// ```
|
||||
/// tx_location_bytes = get_tx_location(hash);
|
||||
/// (block_height, tx_index) = deserialize(&tx_location_bytes)?;
|
||||
/// (block_height, tx_index) = get_tx_location(hash)?;
|
||||
/// ```
|
||||
pub fn get_tx_location(hash: &TransactionHash) -> GenericResult<(u64, u64)> {
|
||||
let mut buf = vec![];
|
||||
|
||||
Reference in New Issue
Block a user