diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-08-25 12:39:30 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-10-03 18:34:30 +0200 |
commit | b278a43646c8fb331a1b830b09a60ec2544dd6b6 (patch) | |
tree | 829882527cd8fb64d62bc9ec2e745aaf1d9223ad /src/wallet | |
parent | 50bd3f626d7ce35d52543b88a2e512074f9df134 (diff) | |
download | bitcoin-b278a43646c8fb331a1b830b09a60ec2544dd6b6.tar.xz |
rpc: Write authcookie atomically
Use POSIX rename atomicity at the `bitcoind` side to create a working
cookie atomically:
- Write `.cookie.tmp`, close file
- Rename `.cookie.tmp` to `.cookie`
This avoids clients reading invalid/partial cookies as in #11129.
Github-Pull: #11131
Rebased-From: 82dd7195e1fb943f9cd45a48188f9678219c0206
Diffstat (limited to 'src/wallet')
0 files changed, 0 insertions, 0 deletions