Skip to content

Commit 29062f7

Browse files
committed
Rename Peer to PotatoHandler
1 parent bf55ce4 commit 29062f7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/outside.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ where
293293
///
294294
/// Also do this when any queue becomes non-empty.
295295
#[allow(dead_code)]
296-
pub struct Peer {
296+
pub struct PotatoHandler {
297297
have_potato: bool,
298298

299299
handshake_state: HandshakeState,
@@ -332,15 +332,15 @@ pub struct Peer {
332332
/// Alice sends the "received channel transaction completion" message.
333333
///
334334
/// once this object knows the channel puzzle hash they should register the coin.
335-
impl Peer {
335+
impl PotatoHandler {
336336
pub fn new(
337337
have_potato: bool,
338338
private_keys: ChannelHandlerPrivateKeys,
339339
my_contribution: Amount,
340340
their_contribution: Amount,
341341
reward_puzzle_hash: PuzzleHash,
342-
) -> Peer {
343-
Peer {
342+
) -> PotatoHandler {
343+
PotatoHandler {
344344
have_potato,
345345
handshake_state: if have_potato {
346346
HandshakeState::PreInit

src/tests/outside.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::common::types::{
1111
Timeout, TransactionBundle,
1212
};
1313
use crate::outside::{
14-
BootstrapTowardWallet, PacketSender, Peer, PeerEnv, PeerMessage, ToLocalUI,
14+
BootstrapTowardWallet, PacketSender, PeerEnv, PeerMessage, PotatoHandler, ToLocalUI,
1515
WalletSpendInterface,
1616
};
1717

@@ -129,7 +129,7 @@ fn test_peer_smoke() {
129129
let reward_puzzle_hash1 =
130130
puzzle_hash_for_pk(allocator, &reward_public_key1).expect("should work");
131131

132-
Peer::new(
132+
PotatoHandler::new(
133133
have_potato,
134134
private_keys1,
135135
Amount::new(100),

0 commit comments

Comments
 (0)