Select Language

Open Dataset

ライトニングネットワーク(LND)の図更新(2週間)

ライトニングネットワーク(LND)の図更新(2週間)

666 hits
0 likes
1 downloads
0 discuss
Computer Science,Internet,Programming,Finance,Economics Classification

Data Structure ? 0M

    Data Structure ?

    *The above analysis is the result extracted and analyzed by the system, and the specific actual data shall prevail.

    README.md

    ## 寄付 このデータセットが役に立つと思われる場合は、このBTCアドレス `3QY74P79ZFbyqxBESGgSkH3tTaF3X1ED7e` に寄付をご検討ください。 寄付は、このようなデータセットや他の実験結果を公開し続けるためのサーバーやストレージの費用に役立ちます。 ## 概要 このデータセットは、2019年2月2日から2019年2月14日まで、メインネットで動作しているLNDノードから収集されました。このデータセットには、約65万件のチャネルとノードの更新情報が含まれています。 データはJSON形式で保存されているため、データを保存する際に短縮キーを使用しました。データの逆シリアル化は簡単で、以下にそのコードを記載しています。 データを逆シリアル化するには、次のようなことを行います。 const data = require('graphupdates.json'); const deserializedData = data.map(datum => new SerializedUpdate(datum).deserialize()); 以下のクラスをコード内の適切な場所に挿入して、上記のループ関数で使用できるようにしてください。 const ChannelUpdate = { id: 'i', base_fee_mtokens: 'a', capacity: 'b', cltv_delta: 'c', fee_rate: 'd', is_disabled: 'e', min_htlc_mtokens: 'f', public_keys: 'g', transaction_id: 'h', transaction_vout: 'j', type: 't', updated_at: 'u' } const ChannelClosedUpdate = { capacity: 'k', id: 'i', close_height: 'l', transaction_id: 'm', transaction_vout: 'n', type: 't', updated_at: 'u' } const NodeUpdate = { alias: 'o', color: 'a', public_key: 'p', sockets: 'q', type: 'r', updated_at: 's' } class SerializedUpdate { constructor(data, classToUse) { Object.keys(data).forEach(key => { let value = data[key]; this[classToUse[key]] = value; }); } deserialize() { const classToUse = this.t === 'node_update' ? NodeUpdate : (this.t === 'channel_update' ? ChannelUpdate : ChannelClosedUpdate); Object.keys(classToUse).forEach(key => { let shortKey = classToUse[key]; let value = this[shortKey]; this[key] = value; delete this[shortKey]; }); } }
    ×

    The dataset is currently being organized and other channels have been prepared for you. Please use them

    The dataset is currently being organized and other channels have been prepared for you. Please use them

    Note: Some data is currently being processed and cannot be directly downloaded. We kindly ask for your understanding and support.
    No content available at the moment
    No content available at the moment
    • Share your thoughts
    Go share your ideas~~

    ALL

      Welcome to exchange and share
      Your sharing can help others better utilize data.
    Points:0 Go earn points?
    • 666
    • 1
    • 0
    • collect
    • Share