Artifact Content
Not logged in

Artifact 7c825fe9977628992e9638f597569a5675192030:


import PrefixMap from '../routing/prefix-map'
import { Route } from '../types/routing'
import { uuid } from '../lib/utils'

export interface RouteUpdate {
  epoch: number,
  prefix: string
  route?: Route
}

export default class ForwardingRoutingTable extends PrefixMap<Route> {
  public routingTableId: string = uuid()
  public log: RouteUpdate[] = []
  public currentEpoch: number = 0
}