Commit c7c804a7 authored by Janis Streib's avatar Janis Streib 🦉

ADD: more block metadata

parent 53ae99eb
Pipeline #131411 passed with stages
in 6 minutes and 25 seconds
......@@ -773,6 +773,7 @@ export default {
cur = cur_pre
if (cur - last > 1) {
const blk = {
orphan: false,
lower: ipaddress.int_to_ip(last),
upper: ipaddress.int_to_ip(cur),
subnet: subnet
......@@ -823,13 +824,16 @@ export default {
last = cur
}
if (cur !== hard_maximum) {
if (cur === null) {
const orphan = cur === null
if (orphan) {
cur = min
}
// The last fucking block
const blk = {
orphan: orphan,
lower: ipaddress.int_to_ip(cur),
upper: ipaddress.int_to_ip(hard_maximum)
upper: ipaddress.int_to_ip(hard_maximum),
subnet: subnet
}
const containing_blocks = []
let last_chg_ip = cur + 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment