multi: enable txindex on miner harness
This commit is contained in:
parent
cb688de7ad
commit
191c4f3e28
@ -964,7 +964,7 @@ func testReorgConf(miner *rpctest.Harness, notifier chainntnfs.TestChainNotifier
|
|||||||
t *testing.T) {
|
t *testing.T) {
|
||||||
|
|
||||||
// Set up a new miner that we can use to cause a reorg.
|
// Set up a new miner that we can use to cause a reorg.
|
||||||
miner2, err := rpctest.New(chainntnfs.NetParams, nil, nil)
|
miner2, err := rpctest.New(chainntnfs.NetParams, nil, []string{"--txindex"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create mining node: %v", err)
|
t.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
@ -1303,7 +1303,7 @@ func testCatchUpOnMissedBlocksWithReorg(miner1 *rpctest.Harness,
|
|||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
// Set up a new miner that we can use to cause a reorg.
|
// Set up a new miner that we can use to cause a reorg.
|
||||||
miner2, err := rpctest.New(chainntnfs.NetParams, nil, nil)
|
miner2, err := rpctest.New(chainntnfs.NetParams, nil, []string{"--txindex"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create mining node: %v", err)
|
t.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -1376,7 +1376,7 @@ func testOpenChannelAfterReorg(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
ctxb := context.Background()
|
ctxb := context.Background()
|
||||||
|
|
||||||
// Set up a new miner that we can use to cause a reorg.
|
// Set up a new miner that we can use to cause a reorg.
|
||||||
args := []string{"--rejectnonstd"}
|
args := []string{"--rejectnonstd", "--txindex"}
|
||||||
miner, err := rpctest.New(harnessNetParams,
|
miner, err := rpctest.New(harnessNetParams,
|
||||||
&rpcclient.NotificationHandlers{}, args)
|
&rpcclient.NotificationHandlers{}, args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -12086,7 +12086,7 @@ func TestLightningNetworkDaemon(t *testing.T) {
|
|||||||
// setting of accepting non-standard transactions on simnet to reject them.
|
// setting of accepting non-standard transactions on simnet to reject them.
|
||||||
// Transactions on the lightning network should always be standard to get
|
// Transactions on the lightning network should always be standard to get
|
||||||
// better guarantees of getting included in to blocks.
|
// better guarantees of getting included in to blocks.
|
||||||
args := []string{"--rejectnonstd"}
|
args := []string{"--rejectnonstd", "--txindex"}
|
||||||
handlers := &rpcclient.NotificationHandlers{
|
handlers := &rpcclient.NotificationHandlers{
|
||||||
OnTxAccepted: func(hash *chainhash.Hash, amt btcutil.Amount) {
|
OnTxAccepted: func(hash *chainhash.Hash, amt btcutil.Amount) {
|
||||||
lndHarness.OnTxAccepted(hash)
|
lndHarness.OnTxAccepted(hash)
|
||||||
|
@ -1778,7 +1778,7 @@ func testReorgWalletBalance(r *rpctest.Harness, w *lnwallet.LightningWallet,
|
|||||||
|
|
||||||
// Now we cause a reorganization as follows.
|
// Now we cause a reorganization as follows.
|
||||||
// Step 1: create a new miner and start it.
|
// Step 1: create a new miner and start it.
|
||||||
r2, err := rpctest.New(r.ActiveNet, nil, nil)
|
r2, err := rpctest.New(r.ActiveNet, nil, []string{"--txindex"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create mining node: %v", err)
|
t.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
@ -2050,7 +2050,7 @@ func TestLightningWallet(t *testing.T) {
|
|||||||
// dedicated miner to generate blocks, cause re-orgs, etc. We'll set
|
// dedicated miner to generate blocks, cause re-orgs, etc. We'll set
|
||||||
// up this node with a chain length of 125, so we have plenty of BTC
|
// up this node with a chain length of 125, so we have plenty of BTC
|
||||||
// to play around with.
|
// to play around with.
|
||||||
miningNode, err := rpctest.New(netParams, nil, nil)
|
miningNode, err := rpctest.New(netParams, nil, []string{"--txindex"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create mining node: %v", err)
|
t.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -540,7 +540,7 @@ func testFilterBlockDisconnected(node *rpctest.Harness,
|
|||||||
|
|
||||||
// Create a node that has a shorter chain than the main chain, so we
|
// Create a node that has a shorter chain than the main chain, so we
|
||||||
// can trigger a reorg.
|
// can trigger a reorg.
|
||||||
reorgNode, err := rpctest.New(netParams, nil, nil)
|
reorgNode, err := rpctest.New(netParams, nil, []string{"--txindex"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create mining node: %v", err)
|
t.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
@ -902,7 +902,7 @@ func TestFilteredChainView(t *testing.T) {
|
|||||||
// dedicated miner to generate blocks, cause re-orgs, etc. We'll set up
|
// dedicated miner to generate blocks, cause re-orgs, etc. We'll set up
|
||||||
// this node with a chain length of 125, so we have plenty of BTC to
|
// this node with a chain length of 125, so we have plenty of BTC to
|
||||||
// play around with.
|
// play around with.
|
||||||
miner, err := rpctest.New(netParams, nil, nil)
|
miner, err := rpctest.New(netParams, nil, []string{"--txindex"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to create mining node: %v", err)
|
t.Fatalf("unable to create mining node: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user