lnd/htlcswitch
Olaoluwa Osuntokun b6f64932c2
htlcswitch: face race condition in unit tests by returning invoice
In this commit we modify the primary InvoiceRegistry interface within
the package to instead return a direct value for LookupInvoice rather
than a pointer. This fixes an existing race condition wherein a caller
could modify or read the value of the returned invoice.
2017-11-11 16:09:29 -08:00
..
circuit.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
failure.go htlcswitch: add new ExtraMsg field to ForwardingError 2017-10-16 18:15:51 -07:00
interfaces.go htlcswitch: face race condition in unit tests by returning invoice 2017-11-11 16:09:29 -08:00
iterator.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
link.go htlcswitch: add quit case to initial channel state sync select in channelLink 2017-11-10 19:51:13 -08:00
link_test.go htlcswitch: face race condition in unit tests by returning invoice 2017-11-11 16:09:29 -08:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mailbox.go htlcswitch: add new mailBox abstraction to the package 2017-11-10 19:51:01 -08:00
mailbox_test.go htlcswitch: add new mailBox abstraction to the package 2017-11-10 19:51:01 -08:00
mock.go htlcswitch: face race condition in unit tests by returning invoice 2017-11-11 16:09:29 -08:00
packet.go htlcswitch: modify Bandwidth() method on links to use more accurate accoutning 2017-11-10 19:51:02 -08:00
queue.go htlcswitch: modify Bandwidth() method on links to use more accurate accoutning 2017-11-10 19:51:02 -08:00
queue_test.go htlcswitch: expand TestWaitingQueueThreadSafety to assert proper queue length 2017-09-25 16:55:18 -07:00
switch.go htlcswitch: utilize memoryMailBox within link, no longer spawn goroutine to forward in switch 2017-11-10 19:51:02 -08:00
switch_test.go htlcswitch: update mockServer to be able to fail test directly 2017-11-10 19:51:03 -08:00
test_utils.go htlcswitch: face race condition in unit tests by returning invoice 2017-11-11 16:09:29 -08:00