lightninglabs / lightning-dev-site Goto Github PK
View Code? Open in Web Editor NEWLightning Network Daemon Developer Site
Lightning Network Daemon Developer Site
https://github.com/lightninglabs/lightning-dev-site/blob/master/tutorial/01-lncli.md
At the end there is link to stage 2 that is broken.
After having opened the channel between Charlie and Bob, mined the funding tx (I generated 3 block instead of just 1), created the invoice as Charlie, when I try to send the payment from Alice to Charlie I get the following error:
{
"payment_error": "unable to find a path to destination",
"payment_preimage": "",
"payment_route": null
}
If I send a payment from Bob to Charlie, by having an open payment channel between them, the send payment works as expected.
In the installation documentation, after installing lnd
, it suggests to run the test via ...
go install; go test -v -p 1 $(go list ./... | grep -v '/vendor/')
But these tests fail (multiple times) due to btcd not being installed yet (haven't reached that part of the installation docs yet). So it seems like an order of operations problem. If its agreeable, i can move the tests to later part of the documentation in a PR, if that makes sense to others.
=== RUN TestFilteredChainView
--- FAIL: TestFilteredChainView (0.28s)
interface_test.go:759: unable to set up mining node: exec: "btcd": executable file not found in $PATH
FAIL
exit status 1
I've confirmed that installing btcd
does make the tests pass.
Here is the full output of running the tests on my machine.
go install; go test -v -p 1 $(go list ./... | grep -v '/vendor/') ✓ 15.55 10:07:42
=== RUN TestBreachedOutputSerialization
--- PASS: TestBreachedOutputSerialization (0.00s)
=== RUN TestRetributionSerialization
--- PASS: TestRetributionSerialization (0.00s)
=== RUN TestMockRetributionStore
=== RUN TestMockRetributionStore/mockRetributionStore.Initialization
=== RUN TestMockRetributionStore/mockRetributionStore.Add/Remove
=== RUN TestMockRetributionStore/mockRetributionStore.Persistence
=== RUN TestMockRetributionStore/mockRetributionStore.Overwrite
=== RUN TestMockRetributionStore/mockRetributionStore.RemoveEmpty
--- PASS: TestMockRetributionStore (0.00s)
--- PASS: TestMockRetributionStore/mockRetributionStore.Initialization (0.00s)
--- PASS: TestMockRetributionStore/mockRetributionStore.Add/Remove (0.00s)
--- PASS: TestMockRetributionStore/mockRetributionStore.Persistence (0.00s)
--- PASS: TestMockRetributionStore/mockRetributionStore.Overwrite (0.00s)
--- PASS: TestMockRetributionStore/mockRetributionStore.RemoveEmpty (0.00s)
=== RUN TestChannelDBRetributionStore
=== RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Initialization
=== RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Add/Remove
=== RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Persistence
=== RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Overwrite
=== RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.RemoveEmpty
--- PASS: TestChannelDBRetributionStore (0.02s)
--- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Initialization (0.00s)
--- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Add/Remove (0.00s)
--- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Persistence (0.01s)
--- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Overwrite (0.00s)
--- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.RemoveEmpty (0.00s)
=== RUN TestFundingManagerNormalWorkflow
--- PASS: TestFundingManagerNormalWorkflow (1.03s)
=== RUN TestFundingManagerRestartBehavior
--- PASS: TestFundingManagerRestartBehavior (2.04s)
=== RUN TestFundingManagerOfflinePeer
--- PASS: TestFundingManagerOfflinePeer (1.53s)
=== RUN TestFundingManagerFundingTimeout
--- PASS: TestFundingManagerFundingTimeout (0.51s)
=== RUN TestFundingManagerReceiveFundingLockedTwice
--- PASS: TestFundingManagerReceiveFundingLockedTwice (2.24s)
=== RUN TestFundingManagerRestartAfterChanAnn
--- PASS: TestFundingManagerRestartAfterChanAnn (1.03s)
=== RUN TestFundingManagerRestartAfterReceivingFundingLocked
--- PASS: TestFundingManagerRestartAfterReceivingFundingLocked (1.83s)
=== RUN TestNurseryStoreInit
--- PASS: TestNurseryStoreInit (0.00s)
=== RUN TestNurseryStoreIncubate
--- PASS: TestNurseryStoreIncubate (0.01s)
=== RUN TestNurseryStoreFinalize
--- PASS: TestNurseryStoreFinalize (0.18s)
=== RUN TestNurseryStoreGraduate
--- PASS: TestNurseryStoreGraduate (0.16s)
=== RUN TestPeerChannelClosureAcceptFeeResponder
=== RUN TestPeerChannelClosureAcceptFeeInitiator
=== RUN TestPeerChannelClosureFeeNegotiationsResponder
=== RUN TestPeerChannelClosureFeeNegotiationsInitiator
=== RUN TestKidOutputSerialization
--- PASS: TestKidOutputSerialization (0.00s)
=== RUN TestBabyOutputSerialization
--- PASS: TestBabyOutputSerialization (0.00s)
--- PASS: TestPeerChannelClosureFeeNegotiationsInitiator (0.03s)
--- PASS: TestPeerChannelClosureFeeNegotiationsResponder (0.03s)
--- PASS: TestPeerChannelClosureAcceptFeeInitiator (0.03s)
--- PASS: TestPeerChannelClosureAcceptFeeResponder (0.04s)
PASS
ok github.com/lightningnetwork/lnd 10.697s
=== RUN TestAgentChannelOpenSignal
=== RUN TestAgentChannelCloseSignal
=== RUN TestAgentBalanceUpdate
=== RUN TestAgentImmediateAttach
=== RUN TestAgentPendingChannelState
=== RUN TestConstrainedPrefAttachmentNeedMoreChan
=== RUN TestConstrainedPrefAttachmentSelectEmptyGraph
=== RUN TestConstrainedPrefAttachmentSelectEmptyGraph/disk_graph
=== RUN TestConstrainedPrefAttachmentSelectEmptyGraph/mem_graph
--- PASS: TestConstrainedPrefAttachmentSelectEmptyGraph (0.03s)
--- PASS: TestConstrainedPrefAttachmentSelectEmptyGraph/disk_graph (0.00s)
--- PASS: TestConstrainedPrefAttachmentSelectEmptyGraph/mem_graph (0.00s)
=== RUN TestConstrainedPrefAttachmentSelectTwoVertexes
=== RUN TestConstrainedPrefAttachmentSelectInsufficientFunds
=== RUN TestConstrainedPrefAttachmentSelectGreedyAllocation
=== RUN TestConstrainedPrefAttachmentSelectSkipNodes
=== RUN TestConstrainedPrefAttachmentSelectTwoVertexes/disk_graph
=== RUN TestConstrainedPrefAttachmentSelectSkipNodes/disk_graph
--- PASS: TestAgentChannelOpenSignal (0.00s)
--- PASS: TestConstrainedPrefAttachmentNeedMoreChan (0.00s)
=== RUN TestConstrainedPrefAttachmentSelectGreedyAllocation/disk_graph
=== RUN TestConstrainedPrefAttachmentSelectSkipNodes/mem_graph
--- PASS: TestConstrainedPrefAttachmentSelectSkipNodes (0.01s)
--- PASS: TestConstrainedPrefAttachmentSelectSkipNodes/disk_graph (0.01s)
--- PASS: TestConstrainedPrefAttachmentSelectSkipNodes/mem_graph (0.00s)
=== RUN TestConstrainedPrefAttachmentSelectInsufficientFunds/disk_graph
=== RUN TestConstrainedPrefAttachmentSelectTwoVertexes/mem_graph
--- PASS: TestConstrainedPrefAttachmentSelectTwoVertexes (0.02s)
--- PASS: TestConstrainedPrefAttachmentSelectTwoVertexes/disk_graph (0.01s)
--- PASS: TestConstrainedPrefAttachmentSelectTwoVertexes/mem_graph (0.00s)
=== RUN TestConstrainedPrefAttachmentSelectInsufficientFunds/mem_graph
--- PASS: TestConstrainedPrefAttachmentSelectInsufficientFunds (0.00s)
--- PASS: TestConstrainedPrefAttachmentSelectInsufficientFunds/disk_graph (0.00s)
--- PASS: TestConstrainedPrefAttachmentSelectInsufficientFunds/mem_graph (0.00s)
--- PASS: TestAgentBalanceUpdate (0.00s)
--- PASS: TestAgentChannelCloseSignal (0.00s)
=== RUN TestConstrainedPrefAttachmentSelectGreedyAllocation/mem_graph
--- PASS: TestConstrainedPrefAttachmentSelectGreedyAllocation (0.03s)
--- PASS: TestConstrainedPrefAttachmentSelectGreedyAllocation/disk_graph (0.03s)
--- PASS: TestConstrainedPrefAttachmentSelectGreedyAllocation/mem_graph (0.00s)
--- PASS: TestAgentPendingChannelState (0.09s)
--- PASS: TestAgentImmediateAttach (0.33s)
PASS
ok github.com/lightningnetwork/lnd/autopilot 0.387s
=== RUN TestConnectionCorrectness
--- PASS: TestConnectionCorrectness (0.03s)
=== RUN TestMaxPayloadLength
=== RUN TestWriteMessageChunking
--- PASS: TestWriteMessageChunking (0.01s)
=== RUN TestBolt0008TestVectors
--- PASS: TestMaxPayloadLength (0.00s)
--- PASS: TestBolt0008TestVectors (0.00s)
PASS
ok github.com/lightningnetwork/lnd/brontide 0.062s
=== RUN TestInterfaces
--- FAIL: TestInterfaces (0.27s)
interface_test.go:1039: unable to set up mining node: exec: "btcd": executable file not found in $PATH
=== RUN TestConcurrentQueue
--- PASS: TestConcurrentQueue (0.00s)
FAIL
exit status 1
FAIL github.com/lightningnetwork/lnd/chainntnfs 0.321s
? github.com/lightningnetwork/lnd/chainntnfs/btcdnotify [no test files]
? github.com/lightningnetwork/lnd/chainntnfs/neutrinonotify [no test files]
=== RUN TestOpenChannelPutGetDelete
=== RUN TestChannelStateTransition
=== RUN TestFetchPendingChannels
=== RUN TestFetchClosedChannels
=== RUN TestOpenWithCreate
=== RUN TestNodeInsertionAndDeletion
=== RUN TestPartialNode
=== RUN TestAliasLookup
=== RUN TestSourceNode
=== RUN TestEdgeInsertionDeletion
=== RUN TestDisconnecteBlockAtHeight
=== RUN TestEdgeInfoUpdates
=== RUN TestGraphTraversal
=== RUN TestGraphPruning
=== RUN TestInvoiceWorkflow
=== RUN TestVersionFetchPut
=== RUN TestOrderOfMigrations
=== RUN TestGlobalVersionList
=== RUN TestMigrationWithPanic
=== RUN TestMigrationWithFatal
=== RUN TestMigrationWithoutErrors
=== RUN TestLinkNodeEncodeDecode
=== RUN TestOutgoingPaymentSerialization
=== RUN TestOutgoingPaymentWorkflow
=== RUN TestWaitingProofStore
--- PASS: TestGlobalVersionList (0.00s)
--- PASS: TestMigrationWithoutErrors (0.01s)
--- PASS: TestMigrationWithFatal (0.00s)
--- PASS: TestOpenChannelPutGetDelete (0.01s)
--- PASS: TestVersionFetchPut (0.00s)
--- PASS: TestOrderOfMigrations (0.00s)
--- PASS: TestMigrationWithPanic (0.00s)
--- PASS: TestPartialNode (0.01s)
--- PASS: TestGraphPruning (0.03s)
--- PASS: TestEdgeInfoUpdates (0.01s)
--- PASS: TestDisconnecteBlockAtHeight (0.01s)
--- PASS: TestEdgeInsertionDeletion (0.01s)
--- PASS: TestSourceNode (0.01s)
--- PASS: TestAliasLookup (0.01s)
--- PASS: TestGraphTraversal (0.05s)
--- PASS: TestNodeInsertionAndDeletion (0.01s)
--- PASS: TestFetchClosedChannels (0.02s)
--- PASS: TestOpenWithCreate (0.01s)
--- PASS: TestFetchPendingChannels (0.01s)
--- PASS: TestInvoiceWorkflow (0.03s)
--- PASS: TestOutgoingPaymentSerialization (0.00s)
--- PASS: TestChannelStateTransition (0.02s)
--- PASS: TestLinkNodeEncodeDecode (0.00s)
--- PASS: TestWaitingProofStore (0.02s)
--- PASS: TestOutgoingPaymentWorkflow (0.07s)
PASS
ok github.com/lightningnetwork/lnd/channeldb 0.176s
? github.com/lightningnetwork/lnd/cmd/lncli [no test files]
=== RUN TestProcessAnnouncement
=== RUN TestPrematureAnnouncement
=== RUN TestSignatureAnnouncementLocalFirst
=== RUN TestOrphanSignatureAnnouncement
=== RUN TestDeDuplicatedAnnouncements
--- PASS: TestPrematureAnnouncement (0.31s)
--- PASS: TestProcessAnnouncement (0.31s)
--- PASS: TestDeDuplicatedAnnouncements (0.00s)
--- PASS: TestOrphanSignatureAnnouncement (0.71s)
--- PASS: TestSignatureAnnouncementLocalFirst (0.91s)
PASS
ok github.com/lightningnetwork/lnd/discovery 0.956s
? github.com/lightningnetwork/lnd/docs/go-fuzz [no test files]
=== RUN TestChannelLinkSingleHopPayment
=== RUN TestChannelLinkBidirectionalOneHopPayments
=== RUN TestChannelLinkMultiHopPayment
=== RUN TestExitNodeTimelockPayloadMismatch
=== RUN TestExitNodeAmountPayloadMismatch
=== RUN TestLinkForwardTimelockPolicyMismatch
=== RUN TestLinkForwardFeePolicyMismatch
=== RUN TestLinkForwardMinHTLCPolicyMismatch
=== RUN TestUpdateForwardingPolicy
=== RUN TestChannelLinkMultiHopInsufficientPayment
=== RUN TestChannelLinkMultiHopUnknownPaymentHash
=== RUN TestChannelLinkMultiHopUnknownNextHop
=== RUN TestChannelLinkMultiHopDecodeError
=== RUN TestChannelLinkExpiryTooSoonExitNode
=== RUN TestChannelLinkExpiryTooSoonMidNode
=== RUN TestChannelLinkSingleHopMessageOrdering
=== RUN TestChannelLinkBandwidthConsistency
=== RUN TestChannelLinkBandwidthConsistencyOverflow
=== RUN TestChannelRetransmission
=== RUN TestShouldAdjustCommitFee
--- PASS: TestShouldAdjustCommitFee (0.00s)
=== RUN TestChannelLinkUpdateCommitFee
=== RUN TestMailBoxCouriers
=== RUN TestWaitingQueueThreadSafety
=== RUN TestSwitchForward
=== RUN TestSkipIneligibleLinksMultiHopForward
=== RUN TestSkipIneligibleLinksLocalForward
=== RUN TestSwitchCancel
=== RUN TestSwitchAddSamePayment
=== RUN TestSwitchSendPayment
--- PASS: TestChannelLinkSingleHopMessageOrdering (0.14s)
--- PASS: TestUpdateForwardingPolicy (0.23s)
--- PASS: TestChannelLinkSingleHopPayment (0.25s)
--- PASS: TestSwitchSendPayment (0.00s)
--- PASS: TestSwitchAddSamePayment (0.00s)
--- PASS: TestSwitchCancel (0.00s)
--- PASS: TestSkipIneligibleLinksLocalForward (0.00s)
--- PASS: TestSkipIneligibleLinksMultiHopForward (0.00s)
--- PASS: TestSwitchForward (0.00s)
--- PASS: TestChannelLinkExpiryTooSoonMidNode (0.11s)
--- PASS: TestMailBoxCouriers (0.00s)
--- PASS: TestChannelLinkMultiHopDecodeError (0.30s)
=== RUN TestChannelRetransmission/intercept_last_alice_revoke_and_ack
--- PASS: TestWaitingQueueThreadSafety (0.08s)
--- PASS: TestChannelLinkExpiryTooSoonExitNode (0.14s)
--- PASS: TestChannelLinkBandwidthConsistency (0.83s)
--- PASS: TestChannelLinkMultiHopUnknownPaymentHash (0.26s)
--- PASS: TestChannelLinkMultiHopUnknownNextHop (0.15s)
--- PASS: TestExitNodeAmountPayloadMismatch (0.10s)
--- PASS: TestChannelLinkUpdateCommitFee (1.55s)
--- PASS: TestLinkForwardFeePolicyMismatch (0.11s)
--- PASS: TestLinkForwardTimelockPolicyMismatch (0.11s)
--- PASS: TestLinkForwardMinHTLCPolicyMismatch (0.12s)
--- PASS: TestExitNodeTimelockPayloadMismatch (0.12s)
--- PASS: TestChannelLinkMultiHopPayment (0.28s)
--- PASS: TestChannelLinkMultiHopInsufficientPayment (0.15s)
--- PASS: TestChannelLinkBandwidthConsistencyOverflow (4.65s)
=== RUN TestChannelRetransmission/intercept_bob_revoke_and_ack_commit_sig_messages
--- PASS: TestChannelLinkBidirectionalOneHopPayments (5.30s)
link_test.go:378: Max waiting: 3.256691409s
link_test.go:379: Min waiting: 1.428323619s
link_test.go:380: Average waiting: 2.50109161s
=== RUN TestChannelRetransmission/intercept_update_add_htlc_and_commit_sig_messages
--- PASS: TestChannelRetransmission (15.79s)
--- PASS: TestChannelRetransmission/intercept_last_alice_revoke_and_ack (5.28s)
--- PASS: TestChannelRetransmission/intercept_bob_revoke_and_ack_commit_sig_messages (5.26s)
--- PASS: TestChannelRetransmission/intercept_update_add_htlc_and_commit_sig_messages (5.26s)
PASS
ok github.com/lightningnetwork/lnd/htlcswitch 16.171s
? github.com/lightningnetwork/lnd/lnrpc [no test files]
=== RUN TestSimpleAddSettleWorkflow
=== RUN TestCheckCommitTxSize
=== RUN TestCooperativeChannelClosure
=== RUN TestForceClose
=== RUN TestForceCloseDustOutput
=== RUN TestDustHTLCFees
=== RUN TestHTLCDustLimit
=== RUN TestChannelBalanceDustLimit
=== RUN TestStateUpdatePersistence
=== RUN TestCancelHTLC
=== RUN TestCooperativeCloseDustAdherence
=== RUN TestUpdateFeeFail
=== RUN TestUpdateFeeSenderCommits
=== RUN TestUpdateFeeReceiverCommits
=== RUN TestUpdateFeeReceiverSendsUpdate
=== RUN TestUpdateFeeMultipleUpdates
=== RUN TestAddHTLCNegativeBalance
=== RUN TestChanSyncFullySynced
=== RUN TestChanSyncOweCommitment
=== RUN TestChanSyncOweRevocation
=== RUN TestChanSyncOweRevocationAndCommit
=== RUN TestChanSyncOweRevocationAndCommitForceTransition
=== RUN TestFeeUpdateRejectInsaneFee
=== RUN TestChannelRetransmissionFeeUpdate
=== RUN TestChanSyncUnableToSync
=== RUN TestChanSyncInvalidLastSecret
=== RUN TestChanAvailableBandwidth
=== RUN TestSignCommitmentFailNotLockedIn
=== RUN TestCommitmentSpendValidation
=== RUN TestRevocationKeyDerivation
=== RUN TestTweakKeyDerivation
=== RUN TestHTLCSenderSpendValidation
=== RUN TestHTLCReceiverSpendValidation
=== RUN TestSecondLevelHtlcSpends
=== RUN TestCommitTxStateHint
=== RUN TestSpecificationKeyDerivation
--- PASS: TestSpecificationKeyDerivation (0.00s)
=== RUN TestSignDescriptorSerialization
--- PASS: TestSignDescriptorSerialization (0.00s)
=== RUN TestTxOutSerialization
--- PASS: TestTxOutSerialization (0.00s)
=== RUN TestLightningWallet
=== RUN TestTxWeightEstimator
--- PASS: TestTxWeightEstimator (0.00s)
--- PASS: TestCommitmentSpendValidation (0.00s)
--- PASS: TestSecondLevelHtlcSpends (0.01s)
--- PASS: TestSimpleAddSettleWorkflow (0.07s)
--- PASS: TestChanSyncFullySynced (0.08s)
--- PASS: TestAddHTLCNegativeBalance (0.02s)
--- PASS: TestChanSyncOweRevocation (0.10s)
--- PASS: TestChanSyncOweCommitment (0.11s)
--- PASS: TestUpdateFeeMultipleUpdates (0.04s)
--- PASS: TestUpdateFeeReceiverSendsUpdate (0.06s)
--- PASS: TestUpdateFeeReceiverCommits (0.06s)
--- PASS: TestUpdateFeeFail (0.05s)
--- PASS: TestCooperativeCloseDustAdherence (0.04s)
--- PASS: TestUpdateFeeSenderCommits (0.08s)
--- PASS: TestCancelHTLC (0.09s)
--- PASS: TestHTLCDustLimit (0.08s)
--- PASS: TestChannelBalanceDustLimit (0.11s)
--- PASS: TestStateUpdatePersistence (0.12s)
--- PASS: TestDustHTLCFees (0.07s)
--- PASS: TestCooperativeChannelClosure (0.04s)
--- PASS: TestForceClose (0.06s)
--- PASS: TestCommitTxStateHint (0.00s)
script_utils_test.go:1099: Passed: states 0 to 1000
script_utils_test.go:1099: Passed: states 'maxStateHint-1000' to 'maxStateHint'
script_utils_test.go:1099: Passed: state 'maxStateHint+1'
script_utils_test.go:1099: Passed: commit transaction with two inputs
--- PASS: TestHTLCSenderSpendValidation (0.01s)
--- PASS: TestHTLCReceiverSpendValidation (0.02s)
--- PASS: TestTweakKeyDerivation (0.00s)
--- PASS: TestForceCloseDustOutput (0.13s)
--- PASS: TestChanSyncUnableToSync (0.03s)
--- PASS: TestSignCommitmentFailNotLockedIn (0.04s)
--- PASS: TestChanSyncInvalidLastSecret (0.08s)
--- PASS: TestChanAvailableBandwidth (0.11s)
--- PASS: TestRevocationKeyDerivation (0.00s)
--- PASS: TestFeeUpdateRejectInsaneFee (0.02s)
--- PASS: TestChanSyncOweRevocationAndCommitForceTransition (0.11s)
--- PASS: TestChannelRetransmissionFeeUpdate (0.16s)
--- PASS: TestChanSyncOweRevocationAndCommit (0.09s)
--- FAIL: TestLightningWallet (0.47s)
interface_test.go:1448: unable to set up mining node: exec: "btcd": executable file not found in $PATH
--- PASS: TestCheckCommitTxSize (0.57s)
FAIL
exit status 1
FAIL github.com/lightningnetwork/lnd/lnwallet 0.951s
? github.com/lightningnetwork/lnd/lnwallet/btcwallet [no test files]
=== RUN TestChannelIDOutPointConversion
=== RUN TestGenPossibleOutPoints
=== RUN TestFeatureVectorSetUnset
=== RUN TestFeatureVectorEncodeDecode
=== RUN TestFeatureVectorUnknownFeatures
=== RUN TestFeatureNames
=== RUN TestMaxOutPointIndex
=== RUN TestEmptyMessageUnknownType
=== RUN TestLightningWireProtocol
=== RUN TestMilliSatoshiConversion
=== RUN TestNetAddressDisplay
=== RUN TestEncodeDecodeCode
--- PASS: TestEncodeDecodeCode (0.04s)
=== RUN TestShortChannelIDEncoding
=== RUN TestSignatureSerializeDeserialize
--- PASS: TestEmptyMessageUnknownType (0.00s)
--- PASS: TestSignatureSerializeDeserialize (0.00s)
--- PASS: TestShortChannelIDEncoding (0.00s)
--- PASS: TestNetAddressDisplay (0.00s)
--- PASS: TestMilliSatoshiConversion (0.00s)
--- PASS: TestFeatureVectorUnknownFeatures (0.00s)
--- PASS: TestMaxOutPointIndex (0.00s)
--- PASS: TestFeatureNames (0.00s)
--- PASS: TestFeatureVectorSetUnset (0.00s)
--- PASS: TestFeatureVectorEncodeDecode (0.00s)
--- PASS: TestChannelIDOutPointConversion (0.00s)
--- PASS: TestGenPossibleOutPoints (0.01s)
--- PASS: TestLightningWireProtocol (2.26s)
lnwire_test.go:645: Running fuzz tests for msgType=Init
lnwire_test.go:645: Running fuzz tests for msgType=Error
lnwire_test.go:645: Running fuzz tests for msgType=Ping
lnwire_test.go:645: Running fuzz tests for msgType=Pong
lnwire_test.go:645: Running fuzz tests for msgType=MsgOpenChannel
lnwire_test.go:645: Running fuzz tests for msgType=MsgAcceptChannel
lnwire_test.go:645: Running fuzz tests for msgType=MsgFundingCreated
lnwire_test.go:645: Running fuzz tests for msgType=MsgFundingSigned
lnwire_test.go:645: Running fuzz tests for msgType=FundingLocked
lnwire_test.go:645: Running fuzz tests for msgType=Shutdown
lnwire_test.go:645: Running fuzz tests for msgType=ClosingSigned
lnwire_test.go:645: Running fuzz tests for msgType=UpdateAddHTLC
lnwire_test.go:645: Running fuzz tests for msgType=UpdateFufillHTLC
lnwire_test.go:645: Running fuzz tests for msgType=UpdateFailHTLC
lnwire_test.go:645: Running fuzz tests for msgType=CommitSig
lnwire_test.go:645: Running fuzz tests for msgType=RevokeAndAck
lnwire_test.go:645: Running fuzz tests for msgType=UpdateFee
lnwire_test.go:645: Running fuzz tests for msgType=UpdateFailMalformedHTLC
lnwire_test.go:645: Running fuzz tests for msgType=ChannelReestablish
lnwire_test.go:645: Running fuzz tests for msgType=ChannelAnnouncement
lnwire_test.go:645: Running fuzz tests for msgType=NodeAnnouncement
lnwire_test.go:645: Running fuzz tests for msgType=ChannelUpdate
lnwire_test.go:645: Running fuzz tests for msgType=AnnounceSignatures
PASS
ok github.com/lightningnetwork/lnd/lnwire 2.328s
? github.com/lightningnetwork/lnd/macaroons [no test files]
=== RUN TestHeapOrdering
=== RUN TestEdgeUpdateNotification
=== RUN TestNodeUpdateNotification
=== RUN TestNotificationCancellation
=== RUN TestChannelCloseNotification
=== RUN TestBasicGraphPathFinding
=== RUN TestKShortestPathFinding
=== RUN TestNewRoutePathTooLong
--- SKIP: TestNewRoutePathTooLong (0.00s)
pathfind_test.go:514:
=== RUN TestPathNotAvailable
=== RUN TestPathInsufficientCapacity
=== RUN TestRouteFailMinHTLC
--- PASS: TestRouteFailMinHTLC (0.01s)
=== RUN TestRouteFailDisabledEdge
--- PASS: TestRouteFailDisabledEdge (0.02s)
=== RUN TestPathInsufficientCapacityWithFee
=== RUN TestPathFindSpecExample
=== RUN TestFindRoutesFeeSorting
=== RUN TestSendPaymentRouteFailureFallback
=== RUN TestSendPaymentErrorPathPruning
=== RUN TestAddProof
=== RUN TestIgnoreNodeAnnouncement
=== RUN TestAddEdgeUnknownVertexes
=== RUN TestWakeUpOnStaleBranch
=== RUN TestDisconnectedBlocks
=== RUN TestRouterChansClosedOfflinePruneGraph
--- PASS: TestHeapOrdering (0.00s)
--- PASS: TestIgnoreNodeAnnouncement (0.03s)
--- PASS: TestPathNotAvailable (0.04s)
--- PASS: TestPathInsufficientCapacity (0.05s)
--- PASS: TestChannelCloseNotification (0.01s)
--- PASS: TestAddEdgeUnknownVertexes (0.06s)
--- PASS: TestNotificationCancellation (0.01s)
--- PASS: TestAddProof (0.01s)
--- PASS: TestKShortestPathFinding (0.05s)
--- PASS: TestBasicGraphPathFinding (0.05s)
--- PASS: TestNodeUpdateNotification (0.03s)
--- PASS: TestSendPaymentRouteFailureFallback (0.05s)
--- PASS: TestFindRoutesFeeSorting (0.06s)
--- PASS: TestPathInsufficientCapacityWithFee (0.00s)
--- PASS: TestSendPaymentErrorPathPruning (0.10s)
--- PASS: TestRouterChansClosedOfflinePruneGraph (0.03s)
--- PASS: TestPathFindSpecExample (0.05s)
--- PASS: TestEdgeUpdateNotification (0.21s)
--- PASS: TestDisconnectedBlocks (1.52s)
--- PASS: TestWakeUpOnStaleBranch (1.54s)
PASS
ok github.com/lightningnetwork/lnd/routing 1.798s
=== RUN TestFilteredChainView
--- FAIL: TestFilteredChainView (0.28s)
interface_test.go:759: unable to set up mining node: exec: "btcd": executable file not found in $PATH
FAIL
exit status 1
FAIL github.com/lightningnetwork/lnd/routing/chainview 0.328s
=== RUN TestDeriveIndex
=== RUN TestSpecificationDeriveElement
=== RUN TestShaChainProducerRestore
=== RUN TestSpecificationShaChainInsert
=== RUN TestShaChainStore
--- PASS: TestDeriveIndex (0.00s)
element_test.go:185: Passed: zero 'from' 'to'
element_test.go:185: Passed: same indexes #1
element_test.go:185: Passed: same indexes #2
element_test.go:185: Passed: test seed 'from'
element_test.go:185: Passed: not the same indexes
element_test.go:185: Passed: 'from' index greater then 'to' index
element_test.go:185: Passed: zero number trailing zeros
--- PASS: TestShaChainProducerRestore (0.00s)
--- PASS: TestSpecificationDeriveElement (0.00s)
element_test.go:274: Passed (generate_from_seed 0 final node)
element_test.go:274: Passed (generate_from_seed FF final node)
element_test.go:274: Passed (generate_from_seed FF alternate bits 1)
element_test.go:274: Passed (generate_from_seed FF alternate bits 2)
element_test.go:274: Passed (generate_from_seed 01 last nontrivial node)
--- PASS: TestSpecificationShaChainInsert (0.00s)
store_test.go:433: Passed (insert_secret correct sequence)
store_test.go:433: Passed (insert_secret #1 incorrect)
store_test.go:433: Passed (insert_secret #2 incorrect (#1 derived from incorrect))
store_test.go:433: Passed (insert_secret #3 incorrect)
store_test.go:433: Passed (insert_secret #4 incorrect (1,2,3 derived from incorrect))
store_test.go:433: Passed (insert_secret #5 incorrect)
store_test.go:433: Passed (insert_secret #6 incorrect (5 derived from incorrect))
store_test.go:433: Passed (insert_secret #7 incorrect)
store_test.go:433: Passed (insert_secret #8 incorrect)
--- PASS: TestShaChainStore (0.18s)
PASS
ok github.com/lightningnetwork/lnd/shachain 0.192s
=== RUN TestCreateWallet
=== RUN TestUnlockWallet
--- PASS: TestCreateWallet (2.83s)
--- PASS: TestUnlockWallet (4.71s)
PASS
ok github.com/lightningnetwork/lnd/walletunlocker 4.820s
=== RUN TestDecodeAmount
=== RUN TestEncodeAmount
=== RUN TestParseTimestamp
=== RUN TestDecodeEncode
=== RUN TestNewInvoice
--- PASS: TestDecodeAmount (0.00s)
--- PASS: TestParseTimestamp (0.00s)
--- PASS: TestEncodeAmount (0.00s)
--- PASS: TestNewInvoice (0.00s)
--- PASS: TestDecodeEncode (0.01s)
PASS
ok github.com/lightningnetwork/lnd/zpay32 0.062s
In the commands starting alice, bob and charlie's nodes, several flags and their corresponding breakdowns need to be updated (rpclisten
--> rpcport
, restlisten
--> restport
, change btcd
to bitcoin
and AFAIK remove --bitcoin.node=btcd
)
think it should be:
lnd --rpcport=10001 --listen=localhost:10011 --restport=8001 --datadir=test_data --logdir=test_log --debuglevel=info --no-macaroons --bitcoin.simnet --bitcoin.active --bitcoin.rpcuser=kek --bitcoin.rpcpass=kek
Scenario: We were trying multi-hop payment from A to C
A opened a channel of 50000 satoshis with B (local balance: 40000, remote balance:0 with respect to A)
B opened a channel of 80000 satoshis with C (local balance: 70000, remote balance:0 with respect to B)
A opened a channel of 90000 satoshis with D (local balance: 80000, remote balance:0 with respect to A)
D opened a channel of 55000 satoshis with C (local balance: 45000, remote balance:0 with respect to D)
Available channels:
A -----> B ------>C
A -----> D ------>C
Now, C added an invoice of 20000 satoshis.
A----->D----->C channel was randomly selected for multi-hop payment
Balances was updated on A ------>D------->C
In A -----> D; A: 60000 and D: 20000
In D -----> C; D: 25000 and C: 20000
Again, C added an invoice of 30000
Expected result:
Now, channel A----->B----->C should be used to settle this payment because D doesn't have sufficient funds.
But we are getting this
{
"payment_error": "unable to route payment to destination: TemporaryChannelFailure",
"payment_preimage": "",
"payment_route": null
}
Hi!
Love your theme!where did you get the jekyll theme(I would like to use it for my website if it's alright for you guys)?
Hi there, just a stupid question: is there a reason why, even if you know golang so well, you used Jekll instead of Hugo as a website static generator?
Everything works until I submit the command to create the connection between Charlie and Bob:
charlie$ lncli-charlie connect <BOB_PUBKEY>@localhost:10012
[lncli] rpc error: code = OutOfRange desc = EOF
But if I reverse the connection as:
bob$ lncli-bob connect <CHARLIE_PUBKEY@localhost:10013
the connection can be establish and I can even request Bob's and Charlie's listpeers:
bob$ lncli-bob listpeers
{
"peers": [
{
"pub_key": "02015fed2386ff28ad68499490a6fcec2b7550441a3e5ecf3008da23019c21b722",
"peer_id": 1,
"address": "127.0.0.1:57734",
"bytes_sent": "539",
"bytes_recv": "539",
"sat_sent": "0",
"sat_recv": "0",
"inbound": false,
"ping_time": "218"
},
{
"pub_key": "030099902bed3d20b94650fba598e82baaa27344f65c889b3098a7e046b4adab5b",
"peer_id": 2,
"address": "127.0.0.1:10013",
"bytes_sent": "201",
"bytes_recv": "201",
"sat_sent": "0",
"sat_recv": "0",
"inbound": true,
"ping_time": "318"
}
]
}
and
charlie$ lncli-charlie listpeers
{
"peers": [
{
"pub_key": "037a644510a712e0eb82992989f2979cb6020aa55dac2129d7b52900eabd53cdfa",
"peer_id": 1,
"address": "127.0.0.1:57828",
"bytes_sent": "253",
"bytes_recv": "253",
"sat_sent": "0",
"sat_recv": "0",
"inbound": false,
"ping_time": "226"
}
]
}
This bug seems like a regression of #9
When running make check
in the "Installing lnd" section of the installation documentation, i get some failures due to a missing executable, bitcoind.
=== RUN TestFilteredChainView
--- FAIL: TestFilteredChainView (0.49s)
interface_test.go:896: Testing 'bitcoind_zmq' implementation of FilteredChainView
interface_test.go:901: unable to make chain view: exec: "bitcoind": executable file not found in $PATH
I am going through the installation but cannot get lnd
to run on neutrino
.
How can I get this to work?
As the instruction says, this is the command I executed:
lnd --bitcoin.active --bitcoin.testnet --debuglevel=debug --neutrino.active --neutrino.connect=faucet.lightning.community
Here is my log:
lnd --bitcoin.active --bitcoin.testnet --debuglevel=debug --neutrino.active --neutrino.connect=faucet.lightning.community
2017-10-19 18:57:21.280 [WRN] LTND: open /home/t4sk/.lnd/lnd.conf: no such file or directory
2017-10-19 18:57:21.280 [INF] LTND: Version 0.3.0-alpha
2017-10-19 18:57:21.282 [INF] CHDB: Checking for schema update: latest_version=0, db_version=0
2017-10-19 18:57:21.288 [INF] LTND: Primary chain is set to: bitcoin
unable to create chain control: unable to create neutrino: address faucet.lightning.community: missing port in address
unable to create neutrino: address faucet.lightning.community: missing port in address
Using ubuntu16.04. virtual_env version = 15.1.0. The setup instructions all seemed to install fine with no warnings. When i try to login to the webpage it fails. I signed the message as described, then pasted it to the box. then i get the Rendezvous error.
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/verify/
Django Version: 1.11.1
Python Version: 2.7.12
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'coindesk']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/febe/ln_workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/home/febe/ln_workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/home/febe/ln_workspace/deskenv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/febe/ln_workspace/lightning-coindesk/coindesk/views.py" in verify
45. user = authenticate(request=request, **kwargs)
File "/home/febe/ln_workspace/deskenv/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py" in authenticate
100. user = backend.authenticate(*args, **credentials)
File "/home/febe/ln_workspace/lightning-coindesk/coindesk/auth_backends.py" in authenticate
15. verifymessage_resp = stub.VerifyMessage(ln.VerifyMessageRequest(msg=csrf_token, signature=signature))
File "/home/febe/ln_workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in __call__
507. return _end_unary_response_blocking(state, call, False, deadline)
File "/home/febe/ln_workspace/deskenv/local/lib/python2.7/site-packages/grpc/_channel.py" in _end_unary_response_blocking
455. raise _Rendezvous(state, None, None, deadline)
Exception Type: _Rendezvous at /verify/
Exception Value: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Endpoint read failed)>
The installation documentation says when installing btcd, use make btcd
, but that repository is missing a makefile. Are we suppose to use glide now instead of the make command?
In the developer tutorial on https://dev.lightning.community/tutorial/01-lncli/index.html in the section Working with lncli and authentication
, the command to create and get info of a wallet has the wrong macaroon path. It has the path --macaroonpath=data/admin.macaroon
instead of the right path: --macaroonpath=data/chain/bitcoin/simnet/admin.macaroon
:
lnd
: 0.5.0 betauname -a
on *Nix): Ubuntubtcd
, bitcoind
, or other backend: 0.12.0 betalncli --rpcserver=localhost:10001 --macaroonpath=data/admin.macaroon create
lncli --rpcserver=localhost:10001 --macaroonpath=data/admin.macaroon getinfo
[lncli] unable to read macaroon path (check the network setting!): open data/admin.macaroon: no such file or directory
This issue is a duplicate of the one on the lnd repository: lightningnetwork/lnd#1891
lncli-web
requires --noencryptwallet
boolean flag and certificates compatible with NodeJS/gRPC.
I get to the following place in the documentation and a get the panic, which is outlined in Roasbeef/btcd#27.
btcd --testnet --txindex --rpcuser=cbarraford --rpcpass=password 2 ↵
No where in the installation doc does it mention a requirement of leveldb needing to be installed. Is that a mistake of the documentation or did i compile something wrong on my local box?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.