rusqlite 0.24
This commit is contained in:
parent
6a62993714
commit
d4f87c12ed
|
@ -19,8 +19,8 @@ group = "0.8"
|
||||||
jubjub = "0.5"
|
jubjub = "0.5"
|
||||||
protobuf = "2.15"
|
protobuf = "2.15"
|
||||||
rand_core = "0.5.1"
|
rand_core = "0.5.1"
|
||||||
rusqlite = { version = "0.23", features = ["bundled"] }
|
rusqlite = { version = "0.24", features = ["bundled", "time"] }
|
||||||
time = "0.1"
|
time = "0.2"
|
||||||
zcash_client_backend = { version = "0.3", path = "../zcash_client_backend" }
|
zcash_client_backend = { version = "0.3", path = "../zcash_client_backend" }
|
||||||
zcash_primitives = { version = "0.3", path = "../zcash_primitives" }
|
zcash_primitives = { version = "0.3", path = "../zcash_primitives" }
|
||||||
|
|
||||||
|
|
|
@ -301,7 +301,7 @@ pub fn create_to_address<P: AsRef<Path>>(
|
||||||
Some(idx) => idx as i64,
|
Some(idx) => idx as i64,
|
||||||
None => panic!("Output 0 should exist in the transaction"),
|
None => panic!("Output 0 should exist in the transaction"),
|
||||||
};
|
};
|
||||||
let created = time::get_time();
|
let created = time::OffsetDateTime::now_utc();
|
||||||
|
|
||||||
// Update the database atomically, to ensure the result is internally consistent.
|
// Update the database atomically, to ensure the result is internally consistent.
|
||||||
data.execute("BEGIN IMMEDIATE", NO_PARAMS)?;
|
data.execute("BEGIN IMMEDIATE", NO_PARAMS)?;
|
||||||
|
|
Loading…
Reference in New Issue