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{
|
peerInfo := PeerInfo{
|
||||||
Transport: transport,
|
Transport: transport,
|
||||||
HTTP: struct {
|
HTTP: struct {
|
||||||
Version string
|
Version string
|
||||||
UserAgent string
|
UserAgent string
|
||||||
Origin string
|
Origin string
|
||||||
Host string
|
Host string
|
||||||
}{
|
}{
|
||||||
Version: "1.1",
|
Version: "1.1",
|
||||||
UserAgent: "test",
|
UserAgent: "test",
|
||||||
Origin: source,
|
Origin: source,
|
||||||
Host: "test",
|
Host: "test",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return context.WithValue(ctx, peerInfoContextKey{}, peerInfo)
|
return context.WithValue(ctx, peerInfoContextKey{}, peerInfo)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,4 +21,4 @@
|
||||||
"account": "0x1234567890123456789012345678901234567890"
|
"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 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 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"
|
"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