Store writes the contents of the set to the given database
(target ethdb.KeyValueWriter)
| 116 | |
| 117 | // Store writes the contents of the set to the given database |
| 118 | func (db *ProofSet) Store(target ethdb.KeyValueWriter) { |
| 119 | db.lock.RLock() |
| 120 | defer db.lock.RUnlock() |
| 121 | |
| 122 | for key, value := range db.nodes { |
| 123 | target.Put([]byte(key), value) |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | // ProofList stores an ordered list of trie nodes. It implements ethdb.KeyValueWriter. |
| 128 | type ProofList []rlp.RawValue |