forked from cerc-io/ipld-eth-server
Canonical blocks (#108)
* Update Block w/ newest Block * Add cascading delete to blocks and transactions tables * Add handling for new conflicting blocks * Command line version of sliding window n behind HEAD
This commit is contained in:
@@ -63,7 +63,7 @@ var _ = Describe("The contract summary", func() {
|
||||
{To: "0x123"},
|
||||
},
|
||||
}
|
||||
repository.CreateBlock(block)
|
||||
repository.CreateOrUpdateBlock(block)
|
||||
blockchain := fakes.NewBlockchain()
|
||||
|
||||
contractSummary, _ := NewCurrentContractSummary(blockchain, repository, "0x123")
|
||||
@@ -81,7 +81,7 @@ var _ = Describe("The contract summary", func() {
|
||||
{Hash: "TRANSACTION1", To: "0x123"},
|
||||
},
|
||||
}
|
||||
repository.CreateBlock(block)
|
||||
repository.CreateOrUpdateBlock(block)
|
||||
blockchain := fakes.NewBlockchain()
|
||||
|
||||
contractSummary, _ := NewCurrentContractSummary(blockchain, repository, "0x123")
|
||||
|
||||
Reference in New Issue
Block a user