mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
quick self review
This commit is contained in:
parent
346c15bebd
commit
bc95c932b9
3 changed files with 10 additions and 10 deletions
|
|
@ -263,16 +263,16 @@ func ContextWithMockPeerInfo(ctx context.Context, transport, source string) cont
|
|||
peerInfo := PeerInfo{
|
||||
Transport: transport,
|
||||
HTTP: struct {
|
||||
Version string
|
||||
UserAgent string
|
||||
Origin string
|
||||
Host string
|
||||
Version string
|
||||
UserAgent string
|
||||
Origin string
|
||||
Host string
|
||||
}{
|
||||
Version: "1.1",
|
||||
UserAgent: "test",
|
||||
Origin: source,
|
||||
Version: "1.1",
|
||||
UserAgent: "test",
|
||||
Origin: source,
|
||||
Host: "test",
|
||||
},
|
||||
}
|
||||
return context.WithValue(ctx, peerInfoContextKey{}, peerInfo)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@
|
|||
"account": "0x1234567890123456789012345678901234567890"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@
|
|||
"Statement present": "service.org wants you to sign in with your Ethereum account:\n0x{{Account}}\n\nhave statement\n\nURI: uri:\nVersion: 1\nChain ID: 1\nNonce: 32891757\nIssued At: 2021-09-30T16:25:24.000Z",
|
||||
"Statement empty": "service.org wants you to sign in with your Ethereum account:\n0x{{Account}}\n\n\n\nURI: uri:\nVersion: 1\nChain ID: 1\nNonce: 32891757\nIssued At: 2021-09-30T16:25:24.000Z",
|
||||
"Statement missing": "service.org wants you to sign in with your Ethereum account:\n0x{{Account}}\n\n\nURI: uri:\nVersion: 1\nChain ID: 1\nNonce: 32891757\nIssued At: 2021-09-30T16:25:24.000Z"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue