test: Fix `WalletTests.GetConflictedOrchardNotes` gtest
The test was creating a fake shielding transaction, but by using a single null `COutPoint` it was accidentally trying to create a coinbase transaction, which was then rejected by the consistency checks on the Rust side (which require that no inputs be provided for a coinbase transaction, which by definition has no real inputs).
This commit is contained in:
parent
ba7d3c41bf
commit
1e9bdcd0a2
|
@ -832,7 +832,7 @@ TEST(WalletTests, GetConflictedOrchardNotes) {
|
|||
|
||||
// Generate a bundle containing output note A.
|
||||
auto builder = TransactionBuilder(consensusParams, 1, orchardAnchor, &keystore);
|
||||
builder.AddTransparentInput(COutPoint(), scriptPubKey, 50000);
|
||||
builder.AddTransparentInput(COutPoint(uint256(), 0), scriptPubKey, 50000);
|
||||
builder.AddOrchardOutput(std::nullopt, recipient, 40000, {});
|
||||
auto maybeTx = builder.Build();
|
||||
EXPECT_TRUE(maybeTx.IsTx());
|
||||
|
|
Loading…
Reference in New Issue