Addinf trace function for invitation debug
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -41,15 +41,15 @@ func TestEndToEnd(t *testing.T) {
|
||||
}
|
||||
println(peer.Name)
|
||||
// print my invitation
|
||||
a, _ := json.Marshal(peer.MyContact)
|
||||
a, _ := json.Marshal(peer.GetMyContact())
|
||||
fmt.Println(string(a))
|
||||
// TODO : Convert invitation to QR Code
|
||||
peer.MyContact.WritePng("invitation.png")
|
||||
data, err := peer.MyContact.Compress()
|
||||
peer.GetMyContact().WritePng("invitation.png")
|
||||
data, err := peer.GetMyContact().Compress()
|
||||
if err != nil {
|
||||
println(err)
|
||||
}
|
||||
peer.MyContact.WriteQr("qrcode.png")
|
||||
peer.GetMyContact().WriteQr("qrcode.png")
|
||||
println("Compressed contact card :", len(data))
|
||||
///////////////////////////////////////
|
||||
// Simulate peer invitation response //
|
||||
@ -65,7 +65,7 @@ func TestEndToEnd(t *testing.T) {
|
||||
ReceivedContact.ContactPublicKey = FirstFriendContactKp.Public
|
||||
ReceivedContact.EncryptionPublicKey = FirstFriendEncryptionKp.Public
|
||||
ReceivedContact.LookupPublicKey = FirstFriendLookupKp.Public
|
||||
ReceivedContact.InvitationId = peer.MyContact.InvitationId
|
||||
ReceivedContact.InvitationId = peer.GetMyContact().InvitationId
|
||||
FriendServer1KP := meowlib.NewKeyPair()
|
||||
FriendServer1 := meowlib.ServerCard{Name: "FriendServer1", Url: "http://myfriend.org/meow/", PublicKey: FriendServer1KP.Public, Description: "Fancy description"}
|
||||
ReceivedContact.PullServers = append(ReceivedContact.PullServers, &FriendServer1)
|
||||
|
Reference in New Issue
Block a user