lightninglabs / taproot-assets

A layer 1 daemon, for the Taproot Assets Protocol specification, written in Go (golang)
MIT License
455 stars 110 forks source link

[bug]: Sync asset from universe error #629

Closed lukegao209 closed 10 months ago

lukegao209 commented 10 months ago

Background

I have mainnet daemon Alice and Bob When I sync an asset from Alice to Bob:

TAPD : V0.3.0 mainnet Alice Tapd --- asset_id ----> Bob Tapd

Alice Tapd launch param: --proofcourieraddr=hashmail://mailbox.terminal.lightning.today:443 --allow-public-uni-proof-courier --universe.public-access

Bob tapd's log tapcli -n mainnet universe sync --universe_host alice:10029 --asset_id a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8 [tapcli] rpc error: code = Unknown desc = unable to sync universe: unable to register issuance proofs: unable to register issuance proofs: unable to verify issuance proofs: unable to verify proof: failed to validate proof block header: unable to retrieve block: rpc error: code = DeadlineExceeded desc = context deadline exceeded

Alice Tapd's log 2023-10-26 14:27:41.303 [DBG] UNIV: Retrieving all keys for Universe: id=issuance-a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8 (asset_id=a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8, group_key=<nil>, proof_type=issuance) 2023-10-26 14:27:41.314 [DBG] RPCS: [QueryProof]: fetching proof at (universeID={a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8 <nil> issuance}, leafKey=5df9c53977f31458af58c56c9d9fac8f5f83371a5ef7f1333f7b7b65a860f499) 2023-10-26 14:27:41.315 [DBG] UNIV: Retrieving Universe proof for: id=issuance-a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8 (asset_id=a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8, group_key=<nil>, proof_type=issuance), base_key=(universe.LeafKey) { OutPoint: (wire.OutPoint) 5469a839abe8744f325822114affc88adfeacf6fd10c50e6f9c6a1198a9fd120:0, ScriptKey: (*asset.ScriptKey)(0xc0007121a0)({ PubKey: (*secp256k1.PublicKey)(0xc0004417c0)({ x: (secp256k1.FieldVal) 4bc8c18c28311d874b2309167de7754129321a6ed48a0073f3b0180ddc24d506, y: (secp256k1.FieldVal) da5dff8b4b01160f48abb437efa988de3de1d4860962325e6cf085a26b09e3f6 }), TweakedScriptKey: (*asset.TweakedScriptKey)(<nil>) }) } 2023-10-26 14:27:42.614 [DBG] RPCS: [QueryProof]: found proof at (universeID={a817a6aa5aff3645db2c0082f3f5362c0208985fba245ec7add892d9477c6ac8 <nil> issuance}, leafKey=5df9c53977f31458af58c56c9d9fac8f5f83371a5ef7f1333f7b7b65a860f499)

Your environment

guggero commented 10 months ago

Thanks for the report. Is this tapd connected to an lnd that is using the Neutrino backend? If yes, then this is likely a duplicate of https://github.com/lightninglabs/taproot-assets/issues/613.

lukegao209 commented 10 months ago

Yes, I use Neutrino backend. thanks.