1111#include < paymentchannel/Commitment.hpp>
1212#include < common/Payment.hpp>
1313#include < common/typesafeOutPoint.hpp>
14- #include < common/Utilities.hpp>
1514
1615namespace Coin {
1716 class Transaction ;
1817 class typesafeOutPoint ;
1918 class TransactionSignature ;
2019 class PrivateKey ;
20+ class SigHashType ;
2121}
2222
2323namespace joystream {
@@ -30,11 +30,13 @@ namespace paymentchannel {
3030 Settlement (const Coin::typesafeOutPoint & contractOutPoint,
3131 const Commitment & commitment,
3232 const Coin::Payment & toPayor,
33- const Coin::Payment & toPayee);
33+ const Coin::Payment & toPayee,
34+ Coin::Network network);
3435
3536 Settlement (const Coin::typesafeOutPoint & contractOutPoint,
3637 const Commitment & commitment,
37- const Coin::Payment & toPayor);
38+ const Coin::Payment & toPayor,
39+ Coin::Network network);
3840
3941 // Creates to appropriate settlement given the dust
4042 // limit and transaction fee
@@ -43,7 +45,8 @@ namespace paymentchannel {
4345 const Coin::PubKeyHash & payorPkHash,
4446 const Coin::PubKeyHash & payeePkHash,
4547 uint64_t paid,
46- uint64_t fee);
48+ uint64_t fee,
49+ Coin::Network network);
4750
4851 // Implicit fee by comparing commitment and (payor + payee) payment
4952 int64_t fee () const ;
@@ -90,10 +93,11 @@ namespace paymentchannel {
9093
9194 // Payment back to payor
9295 Coin::Payment _toPayor;
96+
97+ Coin::Network _network;
9398 };
9499
95100}
96101}
97102
98103#endif // PAYMENT_CHANNEL_SETTLEMENT_HPP
99-
0 commit comments