Ejemplo n.º 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
}
Ejemplo n.º 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
}