diff options
author | Yigit Sever | 2021-04-22 20:15:40 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-25 23:04:39 +0300 |
commit | 32b49380880aab00057b8a663b5327d6f58def3a (patch) | |
tree | 059dc128813a93679233f5489cf1a42b2ea0374d /examples/serdeser.rs | |
parent | 97b2f6c796fd2af1c338725884189685a82adc01 (diff) | |
download | gradecoin-32b49380880aab00057b8a663b5327d6f58def3a.tar.gz gradecoin-32b49380880aab00057b8a663b5327d6f58def3a.tar.bz2 gradecoin-32b49380880aab00057b8a663b5327d6f58def3a.zip |
Implement nicenet
- There are bot accounts that return what you sent them
- Sending a transaction generates some coin out of thin air
- No more one tx per person per block limit
- Unused transactions do not disappear anymore
Diffstat (limited to 'examples/serdeser.rs')
-rw-r--r-- | examples/serdeser.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/serdeser.rs b/examples/serdeser.rs index 60d90b9..4fdfdc2 100644 --- a/examples/serdeser.rs +++ b/examples/serdeser.rs | |||
@@ -4,9 +4,8 @@ use serde_json; | |||
4 | pub fn main() { | 4 | pub fn main() { |
5 | 5 | ||
6 | let tx = Transaction { | 6 | let tx = Transaction { |
7 | by: "fingerprint_of_some_guy".to_owned(), | 7 | source: "fingerprint_of_some_guy".to_owned(), |
8 | source: "31415926535897932384626433832795028841971693993751058209749445923".to_owned(), | 8 | target: "31415926535897932384626433832795028841971693993751058209749445923".to_owned(), |
9 | target: "fingerprint_of_some_guy".to_owned(), | ||
10 | amount: 2, | 9 | amount: 2, |
11 | timestamp: chrono::NaiveDate::from_ymd(2021, 04, 13).and_hms(20, 55, 30), | 10 | timestamp: chrono::NaiveDate::from_ymd(2021, 04, 13).and_hms(20, 55, 30), |
12 | }; | 11 | }; |