(self, source, msg, receivers)
| 111 | return msg |
| 112 | |
| 113 | def send_addr_msg(self, source, msg, receivers): |
| 114 | source.send_and_ping(msg) |
| 115 | # invoke m_next_addr_send timer: |
| 116 | # `addr` messages are sent on an exponential distribution with mean interval of 30s. |
| 117 | # Setting the mocktime 600s forward gives a probability of (1 - e^-(600/30)) that |
| 118 | # the event will occur (i.e. this fails once in ~500 million repeats). |
| 119 | self.mocktime += 10 * 60 |
| 120 | self.nodes[0].setmocktime(self.mocktime) |
| 121 | for peer in receivers: |
| 122 | peer.sync_send_with_ping() |
| 123 | |
| 124 | def oversized_addr_test(self): |
| 125 | self.log.info('Send an addr message that is too large') |
no test coverage detected