create account

Trying out a homemade DAG - Why? (HON on a DAG) - Yes, it will be a tangle, we can use that name, right?! by bitworkers

View this thread on: hive.blogpeakd.comecency.com
· @bitworkers ·
$0.05
Trying out a homemade DAG - Why? (HON on a DAG) - Yes, it will be a tangle, we can use that name, right?!
## A problem we had in our project was fees for transactions
#
They were not necessary, but we had to put it in to incentivize the validation of transactions. Now, theoretically, we don't. We'll use a DAG (at least we'll try) and the IOTA paradigm of "self-inclusion" of validations. We'll do a bit differently though. Instead of validating two previous transactions, we'll test always validating the whole Markov Blanket of a randomly chosen incoming transaction. We'll borrow the terminology used, i. e. a tip.

http://cnskashmir.com/wp-content/uploads/2016/11/no-fees.jpg

### Here's the very start code we'll procure
```
#unit package EC::Network:auth<github:bioduds>;
unit module EC::DAG;

class Node {
  has $.ID is required;
  has $.timestamp is required;
  has $.nonce is required;
  has $.SEED is required;
}

role Blanket {
  has Node $.parents;
  has Node $.children;
  has Node $.children-parents;
}


class Genesis is Node is Blanket {
  has $.treasure = 85000000000000.000001;

  method birth {
    say "Setting up Treasure";
    self!init-local;
  }

  method !init-local {

    say "Init Local";
    self!begin-genesis-ritual;

  }

  method !begin-genesis-ritual {

    say "Beginning Genesis Ritual";
    say "We need to: ";
    say "1. Find all 7 Init Nodes";

    my $seven-status = self!find-seven-nodes;

  }

  method !find-seven-nodes {
    my @nodes;
    @nodes[1] = prompt "Enter 1st Node: ";
    @nodes[2] = prompt "Enter 2nd Node: ";
    @nodes[3] = prompt "Enter 3rd Node: ";
    @nodes[4] = prompt "Enter 4th Node: ";
    @nodes[5] = prompt "Enter 5th Node: ";
    @nodes[6] = prompt "Enter 6th Node: ";
    @nodes[7] = prompt "Enter 7th Node: ";

    @nodes[0] = $.nonce;

    for @nodes -> $node {
      print "Got: $node";
    }

    return True;

  }

}

```

## Cheers! Upvote to help! :) 

---
EDUARDO CAPANEMA
@bitworkers
👍  , , , , , ,
properties (23)
authorbitworkers
permlinktrying-out-a-homemade-dag-why-hon-on-a-dag-yes-it-will-be-a-tangle-we-can-use-that-name-right
categorydag
json_metadata{"tags":["dag","tangle","hon","iota","project"],"users":["bitworkers"],"image":["http://cnskashmir.com/wp-content/uploads/2016/11/no-fees.jpg"],"app":"steemit/0.1","format":"markdown"}
created2017-08-02 14:31:30
last_update2017-08-02 14:31:30
depth0
children0
last_payout2017-08-09 14:31:30
cashout_time1969-12-31 23:59:59
total_payout_value0.047 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,858
author_reputation1,255,144,001,288
root_title"Trying out a homemade DAG - Why? (HON on a DAG) - Yes, it will be a tangle, we can use that name, right?!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id10,543,044
net_rshares11,547,563,277
author_curate_reward""
vote details (7)