Skip to content

Commit

Permalink
feat: add public key to server coin
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 26, 2024
1 parent 12c2a44 commit ffd0c59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/blockchain/ServerCoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class ServerCoin {
publicSyntheticKey,
serverCoinCreationCoins,
epochBasedHint,
[peerIp],
[peerIp, publicSyntheticKey.toString("hex")],
BigInt(serverCoinCollateral),
BigInt(1000000)
);
Expand Down Expand Up @@ -223,6 +223,10 @@ export class ServerCoin {
for (const coinState of filteredCoinStates) {
const serverCoin = await peer.fetchServerCoin(coinState, maxClvmCost);
const peerUrl = serverCoin.memoUrls[0];
// The second memo URL is the public key
// We will utilize this for future features
const publicKey = serverCoin.memoUrls[1];

if (!blacklist.includes(peerUrl)) {
serverCoinPeers.add(peerUrl);
}
Expand Down

0 comments on commit ffd0c59

Please sign in to comment.