Overview
| Comment: | randomSortList in the internal namespace |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
75052adbefba09dc4a054d86834b5a79 |
| User & Date: | rkeene on 2019-01-11 17:35:51.994 |
| Other Links: | manifest | tags |
Context
|
2019-01-11
| ||
| 17:47 | Added support for decoding wallet backups check-in: fe9b42ed61 user: rkeene tags: trunk | |
| 17:35 | randomSortList in the internal namespace check-in: 75052adbef user: rkeene tags: trunk | |
| 17:33 | Update argon2 to deal with the amalgamized version of things in monocypher check-in: b42f88c83c user: rkeene tags: trunk | |
Changes
Modified nano.tcl
from [1cbf28674e]
to [a24cee35a4].
| ︙ | ︙ | |||
3030 3031 3032 3033 3034 3035 3036 | } ::dns::cleanup $dnsQueryID } return $retval } | < | | 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 |
}
::dns::cleanup $dnsQueryID
}
return $retval
}
proc ::nano::internal::randomSortList {args} {
set list [lindex $args end]
set args [lrange $args 0 end-1]
set salt [expr {rand()}]
tailcall lsort {*}$args -command [list apply {{salt a b} {
if {$a eq $b} {
return 0
}
|
| ︙ | ︙ | |||
3271 3272 3273 3274 3275 3276 3277 | unset -nocomplain ::nano::node::_node_id_nonces($peerKey) continue } lappend completePeers $peerKey } | | | 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 |
unset -nocomplain ::nano::node::_node_id_nonces($peerKey)
continue
}
lappend completePeers $peerKey
}
set retval [::nano::internal::randomSortList -unique $completePeers]
return $retval
}
proc ::nano::protocol::parse::keepalive {extensions messageData} {
set peers [list]
while {$messageData ne ""} {
|
| ︙ | ︙ |