Beispiel #1
0
// AddEBEntry creates a new Entry Block Entry from the provided Factom Entry
// and adds it to the Entry Block Body.
func (e *EBlock) AddEBEntry(entry interfaces.IEBEntry) error {
	e.Body.EBEntries = append(e.Body.EBEntries, entry.GetHash())
	if err := e.BuildHeader(); err != nil {
		return err
	}
	return nil
}
Beispiel #2
0
// AddEBEntry creates a new Entry Block Entry from the provided Factom Entry
// and adds it to the Entry Block Body.
func (e *EBlock) AddEBEntry(entry interfaces.IEBEntry) error {
	e.Body.EBEntries = append(e.Body.EBEntries, entry.GetHash())
	return nil
}