Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Build fails after seal blinding upgrade to 64 bit #29

Closed
dr-orlovsky opened this issue Jul 28, 2020 · 9 comments · Fixed by #32
Closed

Build fails after seal blinding upgrade to 64 bit #29

dr-orlovsky opened this issue Jul 28, 2020 · 9 comments · Fixed by #32
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dr-orlovsky
Copy link
Member

We have an RGB node build failing after LNP/BP Core library adopting 64-bit blinding factors for seal definitions after LNP-BP/rust-lnpbp#52 acceptance

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Jul 28, 2020
@dr-orlovsky dr-orlovsky added this to the v0.1.0 Beta 3 milestone Jul 28, 2020
@Goosie
Copy link
Contributor

Goosie commented Jul 28, 2020

Let me know when I can help with testing or whatever.

@rajarshimaitra
Copy link
Contributor

Hi @Goosie thanks for the report. Posted a fix in rust-lnpbp LNP-BP/rust-lnpbp#58.

You can try changing the lnp-bp dependency to my branch https://github.com/rajarshimaitra/rust-lnpbp/tree/build-fix-28/07
And see if the build passes. Hopefully, this should do the fix.

@Goosie
Copy link
Contributor

Goosie commented Jul 28, 2020

Yess thanks, No errors after cargo build --release in this directory now. Thanks!, Up to the next steps :-)
I assume I have to change this path in Cargo.toml

@Goosie
Copy link
Contributor

Goosie commented Jul 28, 2020

I react to early. I removed the rgb-node directory. Cloned the repository from rgb-node again and changed the path in Cargo.toml Under section [dependencies.lnpbo] I changed the path
git = "https://github.com/lnp-bp/rust-lnpbp" into git = "https://github.com/rajarshimaitra/rust-lnpbp" After running cargo build --release I get the same error as started:
error[E0308]: mismatched types
--> /home/alice/.cargo/git/checkouts/rust-lnpbp-a0ee553585762f76/2f6fee7/src/rgb/contract/amount.rs:92:48
|
92 | match (&self.commitment.0).partial_cmp(&other.commitment.0[..]) {
| ^^^^^^^^^^^^^^^^^^^^^^^ expected array [u8; 33], found slice [u8]
|
= note: expected reference &[u8; 33]
found reference &[u8]

Do I have to change the path somewhere else maybe?

@rajarshimaitra
Copy link
Contributor

git = "https://github.com/lnp-bp/rust-lnpbp" into git = "https://github.com/rajarshimaitra/rust-lnpbp" After running cargo build --release I get the same error as started:

Right, just one more change. Add the branch name too like this in Cargo.toml

[dependencies.lnpbp]
git = "https://github.com/rajarshimaitra/rust-lnpbp"
branch = "build-fix-28/07"
features = ["all"]

@Goosie
Copy link
Contributor

Goosie commented Jul 28, 2020

Yess. It's working now :-)

@dr-orlovsky
Copy link
Member Author

I actually did a fix in a master commit two days before, but it appears that I have not added the required changes to it with git add :) So I have merged @rajarshimaitra PR now and you can link to the master

@dr-orlovsky
Copy link
Member Author

@rajarshimaitra can you pls work on fixing the issue with u32->u64 here in RGB node after LNP/BP change? The discussion here is actually misleading, since it's about an unrelated issue (namely fixed with some other your PR)...

@rajarshimaitra
Copy link
Contributor

Yes working on it.

@dr-orlovsky dr-orlovsky linked a pull request Jul 31, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants