Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion protocol/src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ impl Validator {
}
Err(e) => {
let input =
changeset.spends.get_mut(open_idx).expect("input for open should exist");
changeset.spends.iter_mut().find(|s| s.n == open_idx)
.expect("input for open should exist");
input.script_error = Some(e);
}
}
Expand Down
10 changes: 10 additions & 0 deletions testutil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@ name = "spaces_testutil"
version = "0.0.1"
edition = "2021"

[[bin]]
name = "db-dump"
path = "src/bin/db_dump.rs"

[dependencies]
bitcoind = { version = "0.36.0", features = ["26_0"] }
spaces_client = { path = "../client" }
hyper = "0.14.28"
assert_cmd = "2.0.16"
anyhow = "1.0.66"
hex = "0.4"
spacedb = { git = "https://github.com/spacesprotocol/spacedb", version = "0.0.7" }
spaces_protocol = { path = "../protocol", features = ["std", "serde"] }
bincode = { version = "2.0.1", features = ["serde", "derive"] }
serde_json = "1.0"

[build-dependencies]
zip = { version = "0.6" }
Expand Down
Loading
Loading